This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: install libffi
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 31 Dec 2002 10:19:08 -0700
- Subject: Patch: install libffi
- Reply-to: tromey at redhat dot com
This patch changes the top-level Makefile.in so that libffi is
installed.
Tested on x86 Red Hat Linux 7.3.
Ok to commit for the trunk and branch?
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.def (target_modules) [libffi]: Allow installation.
Index: Makefile.def
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.def,v
retrieving revision 1.5
diff -u -r1.5 Makefile.def
--- Makefile.def 16 Dec 2002 18:18:41 -0000 1.5
+++ Makefile.def 31 Dec 2002 16:59:18 -0000
@@ -81,7 +81,7 @@
target_modules = { module= libiberty; };
target_modules = { module= gperf; };
target_modules = { module= examples; no_check=true; no_install=true; };
-target_modules = { module= libffi; no_install=true; };
+target_modules = { module= libffi; };
target_modules = { module= libjava; raw_cxx=true; };
target_modules = { module= zlib; };
target_modules = { module= boehm-gc; };
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.in,v
retrieving revision 1.141
diff -u -r1.141 Makefile.in
--- Makefile.in 28 Dec 2002 16:24:47 -0000 1.141
+++ Makefile.in 31 Dec 2002 16:59:20 -0000
@@ -6876,8 +6876,12 @@
.PHONY: install-target-libffi maybe-install-target-libffi
maybe-install-target-libffi:
-# Dummy target for uninstallable.
-install-target-libffi:
+install-target-libffi: installdirs
+ @r=`${PWD}`; export r; \
+ s=`cd $(srcdir); ${PWD}`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $(TARGET_SUBDIR)/libffi && \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
.PHONY: configure-target-libjava maybe-configure-target-libjava