diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-20 21:10:44 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-20 21:10:44 +0000 |
commit | f987497d5df1e9a9080e579fd586d2f920562550 (patch) | |
tree | 136bc6119c02f9ab3f53430ca91d94663f40918e /gcc/Makefile.in | |
parent | a09a12344935fffe39cd1896a3766af0e34b484e (diff) | |
download | gcc-f987497d5df1e9a9080e579fd586d2f920562550.tar.gz |
* Makefile.in (install-common): Do not install the specs file
unless SPECS is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index c73562b6c3c..84282c5def1 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -3236,12 +3236,19 @@ install-common: native $(EXTRA_PARTS) lang.install-common installdirs chmod a-x $(DESTDIR)$(libsubdir)/$$file; \ else true; fi; \ done -# Don't mess with specs if it doesn't exist yet. - -if [ -f specs ] ; then \ - rm -f $(DESTDIR)$(libsubdir)/specs; \ - $(INSTALL_DATA) $(SPECS) $(DESTDIR)$(libsubdir)/specs; \ - chmod a-x $(DESTDIR)$(libsubdir)/specs; \ - fi +# Remove any specs file installed by a previous version of GCC. + rm -f $(DESTDIR)$(libsubdir)/specs +ifneq ($(SPECS),specs) +# In general, we no longer install the specs file because its presence +# makes the driver slower, and because people who need it can recreate +# it by using -dumpspecs. +# +# However, in the case that the target has defined SPECS, then we must +# install the file. It may be that the installed specs file is +# different from that built into the driver. + $(INSTALL_DATA) $(SPECS) $(DESTDIR)$(libsubdir)/specs + chmod a-x $(DESTDIR)$(libsubdir)/specs +endif # Install protoize if it was compiled. -if [ -f protoize$(exeext) ]; then \ rm -f $(DESTDIR)$(bindir)/$(PROTOIZE_INSTALL_NAME)$(exeext); \ |