Mercurial > oi > oi-build
changeset 378:f0b61ed1d10d
7064052 gcc3 delivers incorrect .la files in build 166
author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
---|---|
date | Thu, 07 Jul 2011 19:05:29 -0700 |
parents | 5df42c8502d2 |
children | c6a17bba1da3 |
files | components/gcc3/Makefile |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)