summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-08-05 01:44:31 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-08-05 01:44:31 +0200
commit7784e06f3a748010f9c4be47f093ca37b9c6b88a (patch)
tree8d0410fb120fb58f6cf8d20f79e01aeef545f2cd /toolchain/gcc
parent4167fa8f12a403030013b5d4d1e833eec126131e (diff)
ppc64le: glibc needs long double 128 support in gcc
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index a36986f4d..1cb0d2540 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -195,8 +195,12 @@ GCC_CONFOPTS+= --with-long-double-64 --enable-secureplt
endif
ifeq ($(ADK_TARGET_ARCH_PPC64),y)
+ifeq ($(ADK_TARGET_LIB_GLIBC),y)
+GCC_CONFOPTS+= --with-long-double-128 --with-abi=elfv2
+else
GCC_CONFOPTS+= --without-long-double-128 --with-abi=elfv2
endif
+endif
ifneq ($(ADK_TARGET_MIPS_ABI),)
GCC_CONFOPTS+= --with-abi=${ADK_TARGET_MIPS_ABI}