diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-25 15:57:42 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-25 15:57:42 +0200 |
commit | b24967f7f53aca7ca634086ff09f2c78ea3c41df (patch) | |
tree | a617375339d465c39b461763b6b85139442186fb /toolchain/gcc/Makefile | |
parent | 7f3beb6e14c70030395275040e17baeb8c109541 (diff) |
fix the annoying bug, where c++ apps fail to link for mips n32 or x86_64 systems
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r-- | toolchain/gcc/Makefile | 7 |
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 |