7101897 libtool contains some automount paths
authorRich Burridge <rich.burridge@oracle.com>
Thu, 08 Mar 2012 14:30:15 -0800
changeset 725 c3d04b0fa1ca
parent 724 2168b2449dc8
child 726 8c41de19735e
7101897 libtool contains some automount paths
components/libtool/Makefile
--- a/components/libtool/Makefile	Wed Mar 07 11:30:43 2012 -0800
+++ b/components/libtool/Makefile	Thu Mar 08 14:30:15 2012 -0800
@@ -54,6 +54,16 @@
 
 COMPONENT_PREP_ACTION = (cd $(@D) ; ./bootstrap)
 
+# Remove the hard-wired compiler locations in the LTCC and two CC lines
+# in the two versions of the libtool script.
+COMPONENT_POST_INSTALL_ACTION = \
+	(for dir in $(PROTOUSRBINDIR) $(PROTOUSRBINDIR)/$(MACH64) ; do \
+		cd $$dir; \
+		/usr/gnu/bin/sed -i \
+			-e 's|^LTCC="/.*$$|LTCC="cc"|' \
+			-e 's|^CC="/.*$$|CC="cc"|' libtool ; \
+	done)
+
 # Macros to configure, build, and install the old version for the time being.
 BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
 BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)