# HG changeset patch # User Norm Jacobs # Date 1310090729 25200 # Node ID 9a0518dec959f58f4daf981d5e9b93f1a1f193b0 # Parent 63e187b1cd59265c09011259a10e9f35303457ec 7064052 gcc3 delivers incorrect .la files in build 166 diff -r 63e187b1cd59 -r 9a0518dec959 components/gcc3/Makefile --- a/components/gcc3/Makefile Thu Jul 07 14:07:49 2011 -0700 +++ b/components/gcc3/Makefile Thu Jul 07 19:05:29 2011 -0700 @@ -71,7 +71,16 @@ # common targets build: $(BUILD_32) -install: $(INSTALL_32) +$(PROTO_DIR)/.sedded: $(INSTALL_32) + (cd $(@D) ; for file in libstdc++.la libsupc++.la ; do \ + $(MV) usr/sfw/lib/$$file usr/sfw/lib/$$file.orig ; \ + sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib -lgcc_s -lm';" usr/sfw/lib/$$file.orig >usr/sfw/lib/$$file ; \ + $(MV) usr/sfw/lib/$(MACH64)/$$file usr/sfw/lib/$(MACH64)/$$file.orig ; \ + sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib/$(MACH64) -lgcc_s -lm';" usr/sfw/lib/$(MACH64)/$$file.orig >usr/sfw/lib/$(MACH64)/$$file ; \ + done) + $(TOUCH) $@ + +install: $(PROTO_DIR)/.sedded BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)