Makefile.in (install-common): Do not install the specs file unless SPECS is defined.
authorMark Mitchell <mark@codesourcery.com>
Mon, 20 Dec 2004 21:10:44 +0000 (21:10 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 20 Dec 2004 21:10:44 +0000 (21:10 +0000)
* Makefile.in (install-common): Do not install the specs file
unless SPECS is defined.

From-SVN: r92433

gcc/ChangeLog
gcc/Makefile.in

index 45c0a27f235035c84e124aa6ca01ff5e1b746c05..6fb84285222e9642f1aa49bd62fd9e070ac5491c 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * Makefile.in (install-common): Do not install the specs file
+       unless SPECS is defined.
+
 2004-12-20  Zdenek Dvorak  <dvorakz@suse.cz>
 
        PR rtl-optimization/18942
index c73562b6c3c9a49ff382d8f9567115e83bbf7073..84282c5def1a21b863f2d83a6570826369f489d3 100644 (file)
@@ -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); \