# HG changeset patch # User Norm Jacobs # Date 1310090729 25200 # Node ID f0b61ed1d10d0e306978d101b29fda4aa31f0bee # Parent 5df42c8502d210df67bf83f97221d648f4f4014f 7064052 gcc3 delivers incorrect .la files in build 166 diff -r 5df42c8502d2 -r f0b61ed1d10d 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)