summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-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