]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgcc: Ensure that gcc configure options are passed to libgcc too
authorKhem Raj <raj.khem@gmail.com>
Wed, 11 May 2016 17:35:31 +0000 (10:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 May 2016 12:40:52 +0000 (13:40 +0100)
libgcc uses certain options from EXTRA_OECONF as well, curently we are
ignoring them, as a result we do not configure libgcc to match cross gcc
in some cases e.g. ppc/musl should have used 64bit long doubles but
it went for 128-ldbls which is default, works on glibc but not on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-common.inc
meta/recipes-devtools/gcc/libgcc-common.inc

index e4fd4d6f70f8d7ee0b81a63cdb9f05c2c7bef62b..f540b4d9658fe9166b4e916cad29f4102ea4c6df 100644 (file)
@@ -33,6 +33,8 @@ def get_gcc_ppc_plt_settings(bb, d):
 def get_long_double_setting(bb, d):
     if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'glibc' ]:
         return "--with-long-double-128"
+    else:
+        return "--without-long-double-128"
     return ""
 
 def get_gcc_multiarch_setting(bb, d):
index dae07e96da537fe9f84c2db0f891a3d3c8186624..e6d31bc30590d7d4e1d1e7a97a0efb31e90c8517 100644 (file)
@@ -4,6 +4,13 @@ require gcc-shared-source.inc
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+EXTRA_OECONF += "\
+    ${@get_gcc_mips_plt_setting(bb, d)} \
+    ${@get_gcc_ppc_plt_settings(bb, d)} \
+    ${@get_long_double_setting(bb, d)} \
+    ${@get_gcc_multiarch_setting(bb, d)} \
+"
+
 do_configure () {
        target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
        install -d ${D}${base_libdir} ${D}${libdir}