This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix install-cpp dependencies
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 May 2005 22:51:32 -0700 (PDT)
- Subject: fix install-cpp dependencies
When doing 'make install -j 2', sometimes $prefix/bin/cpp would not be
installed, because $prefix/bin would not be created before the
INSTALL_PROGRAM command gets run. This would not cause a fatal error,
because for some reason every command in this rule is prefixed with
'-', but it would lead to a build which silently omits
$prefix/bin/cpp.
Bootstrapped & tested with 'make install' on powerpc-darwin.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-installcppdeps.patch==================
2005-05-29 Geoffrey Keating <geoffk@apple.com>
* Makefile.in (install-cpp): Depend on installdirs.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1491
diff -u -p -u -p -r1.1491 Makefile.in
--- Makefile.in 25 May 2005 12:33:20 -0000 1.1491
+++ Makefile.in 30 May 2005 05:49:53 -0000
@@ -3395,7 +3395,7 @@ install: install-common $(INSTALL_HEADER
lang.install-normal install-driver
# Handle cpp installation.
-install-cpp: cpp$(exeext)
+install-cpp: installdirs cpp$(exeext)
-rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
-$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
-if [ x$(cpp_install_dir) != x ]; then \
============================================================