summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/build b/build
index 34321f2..428bdad 100755
--- a/build
+++ b/build
@@ -76,6 +76,15 @@ install: build
fincludedir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/finclude \
toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR=
rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a
+ # Move libstdc++.so link.
+ rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libstdc++.so
+ ln -sf /usr/lib/$(OPK_HOST_ARCH)/libstdc++.so.0 \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libstdc++.so
+ # Move libstdc++.a and libsupc++.a.
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/libstdc++.a \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/libsupc++.a \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
# Move libmudflap.so and libmudflapth.so links.
rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libmudflap.so
ln -sf /usr/lib/$(OPK_HOST_ARCH)/libmudflap.so.0 \