summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-15 20:01:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-15 20:01:42 +0100
commit3d2baf48fa00f833a9e38b5722ce266d6b85704f (patch)
tree1cea307bb55b9ada5d9607cf6fb7ab578eccc1f7 /toolchain/gcc
parent4b22572374d3adb5cdf05860dbc49cd9ee300e39 (diff)
parent229b3477b76393650420feecc6b465fd3d8ed639 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'toolchain/gcc')
-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