From b24967f7f53aca7ca634086ff09f2c78ea3c41df Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 25 Oct 2013 15:57:42 +0200 Subject: fix the annoying bug, where c++ apps fail to link for mips n32 or x86_64 systems --- toolchain/gcc/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'toolchain') 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 -- cgit v1.2.3