From: Alejandro Hernandez Date: Tue, 24 Nov 2015 16:43:11 +0000 (+0000) Subject: python3: fix building nativesdk-python3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2bb0da898d23ddbd805bc234cc223a42b14ffe;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 dont enable debug during configure theres no declaration of some functions, this patch makes sure we keep debug disabled, fixing the linking errors. [YOCTO #8467] (From OE-Core rev: d4723c609f700180ee808ac3fbbe2225043a8353) Signed-off-by: Alejandro Hernandez Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python3_3.5.0.bb b/meta/recipes-devtools/python/python3_3.5.0.bb index d0872be2b62..2475dba1fcf 100644 --- a/meta/recipes-devtools/python/python3_3.5.0.bb +++ b/meta/recipes-devtools/python/python3_3.5.0.bb @@ -58,6 +58,7 @@ CACHED_CONFIGUREVARS = "ac_cv_have_chflags=no \ " 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"