summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index fb027c8c3..c547591a0 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -26,6 +26,7 @@ GCC_CONFOPTS= --prefix=$(STAGING_HOST_DIR) \
--disable-cloog-version-check \
--without-ppl \
--without-cloog \
+ --without-isl \
--disable-nls
ifeq ($(ADK_TOOLCHAIN_GCC_SJLJ),y)
@@ -61,13 +62,21 @@ GCC_CONFOPTS+= --disable-lto
endif
ifeq ($(ARCH),m68k)
+ifeq ($(ADK_TARGET_LIBC),uclibc)
GCC_CONFOPTS+= --disable-tls
else
GCC_CONFOPTS+= --enable-tls
endif
+else
+GCC_CONFOPTS+= --enable-tls
+endif
ifeq ($(ARCH),powerpc)
+ifeq ($(ADK_TARGET_LIBC),uclibc)
+GCC_CONFOPTS+= --disable-target-optspace --with-long-double-128 --enable-secureplt
+else
GCC_CONFOPTS+= --disable-target-optspace --with-long-double-64 --enable-secureplt
+endif
else
GCC_CONFOPTS+= --enable-target-optspace
endif
@@ -196,6 +205,8 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
@-test -d $(STAGING_TARGET_DIR)/lib64 && \
cd $(STAGING_TARGET_DIR)/lib64 && \
ln -sf libstdc++.so.6.0.17 libstdc++.so
+ # cleanup unneeded docs
+ rm -rf $(STAGING_HOST_DIR)/share
touch $@
include ${TOPDIR}/mk/toolchain.mk