Browse Source

ppc64le: glibc needs long double 128 support in gcc

Waldemar Brodkorb 6 years ago
parent
commit
7784e06f3a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      toolchain/gcc/Makefile

+ 4 - 0
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}