[oe-commits] [openembedded-core] 55/67: libgcc: Ensure that gcc configure options are passed to libgcc too

git at git.openembedded.org git at git.openembedded.org
Thu May 12 10:57:59 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e90f250b1e1902edbcac8239ddd87b5264c88471
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed May 11 10:35:31 2016 -0700

    libgcc: Ensure that gcc configure options are passed to libgcc too
    
    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 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/gcc/gcc-common.inc    | 2 ++
 meta/recipes-devtools/gcc/libgcc-common.inc | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index e4fd4d6..f540b4d 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -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):
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc
index dae07e9..e6d31bc 100644
--- a/meta/recipes-devtools/gcc/libgcc-common.inc
+++ b/meta/recipes-devtools/gcc/libgcc-common.inc
@@ -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}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list