summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-25 15:57:42 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-25 15:57:42 +0200
commitb24967f7f53aca7ca634086ff09f2c78ea3c41df (patch)
treea617375339d465c39b461763b6b85139442186fb /toolchain/gcc
parent7f3beb6e14c70030395275040e17baeb8c109541 (diff)
fix the annoying bug, where c++ apps fail to link for mips n32 or x86_64 systems
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 775f871c1..f82332702 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -195,6 +195,13 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
done;
# workaround for openjdk
cd $(STAGING_HOST_DIR)/$(REAL_GNU_TARGET_NAME)/bin ; cp * ..
+ # fix linking g++ apps with libtool
+ @-test -d $(STAGING_TARGET_DIR)/lib32 && \
+ cd $(STAGING_TARGET_DIR)/lib32 && \
+ ln -sf libstdc++.so.6.0.17 libstdc++.so
+ @-test -d $(STAGING_TARGET_DIR)/lib64 && \
+ cd $(STAGING_TARGET_DIR)/lib64 && \
+ ln -sf libstdc++.so.6.0.17 libstdc++.so
touch $@
include ${TOPDIR}/mk/toolchain.mk