[oe-commits] [openembedded-core] 12/18: python3: fix building nativesdk-python3

git at git.openembedded.org git at git.openembedded.org
Mon Apr 11 21:04:01 UTC 2016


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

commit 2dd22dff121b3effe40abe4370de89231785a823
Author: Juro Bystricky <juro.bystricky at intel.com>
AuthorDate: Mon Apr 11 00:29:15 2016 -0700

    python3: fix building nativesdk-python3
    
    When the class nativesdk.bbclass is inherited, it redefines TARGET_CC_ARCH,
    in the case of python3, this enables debug, causing an error while linking.
    Since we don't enable debug during configure some functions are not declared.
    This patch makes sure we keep debug disabled, fixing the linking errors.
    
    [YOCTO #9357]
    
    Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python3_3.4.3.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python3_3.4.3.bb b/meta/recipes-devtools/python/python3_3.4.3.bb
index f61d278..4f4e79c 100644
--- a/meta/recipes-devtools/python/python3_3.4.3.bb
+++ b/meta/recipes-devtools/python/python3_3.4.3.bb
@@ -61,6 +61,7 @@ CACHED_CONFIGUREVARS = "ac_cv_have_chflags=no \
 TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
 TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
 TARGET_CC_ARCH += "-DNDEBUG -fno-inline"
+SDK_CC_ARCH += "-DNDEBUG -fno-inline"
 EXTRA_OEMAKE += "CROSS_COMPILE=yes"
 EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ --without-ensurepip"
 

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


More information about the Openembedded-commits mailing list