summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index deef63a5c..f82332702 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -42,6 +42,8 @@ endif
ifeq ($(ADK_LINUX_X86_64),y)
ifeq ($(ADK_x32),y)
GCC_CONFOPTS+= --with-multilib-list=mx32
+else
+GCC_CONFOPTS+= --disable-biarch --disable-multilib
endif
endif
@@ -57,11 +59,15 @@ else
GCC_CONFOPTS+= --disable-lto
endif
+ifeq ($(ARCH),m68k)
+GCC_CONFOPTS+= --disable-tls
+else
ifeq ($(ARCH),cris)
GCC_CONFOPTS+= --disable-tls
else
GCC_CONFOPTS+= --enable-tls
endif
+endif
ifeq ($(ARCH),powerpc)
ifeq ($(ADK_TARGET_LIBC),musl)
@@ -189,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