]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: fix possible problems with nscd compilation during eglibc-nativesdk build
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 23 Sep 2011 19:46:38 +0000 (23:46 +0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Sep 2011 19:50:27 +0000 (20:50 +0100)
Long time ago a066e7ca90a28d5681c5fa895a29e999ed7c88b was committed to
address possible problems with compilation of nscd during
eglibc-nativesdk build. Problems were related to the way gcc searches
for headers to check if it should enable it's own stack smash protection
bits or it can relay on eglibc for it.

However after 934d38530c9a67562e53d4034aee5531f0f26750 things got
broken, as for gcc-crosssdk-intermediate packages:
1) EXTRA_OECONF is ignored
2) headers are installed in a different location than expected by that
patch.

This results in eglibc-nativesdk build broken on some systems (e.g. mine
Debian x86_64 squeeze). Fix that by providing with-headers options to
crosssdk-intermediate gcc configuration.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.5.1.inc
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate.inc

index 90824bdf781e9103170f55a95cd092e18e47dd5a..6a9a7a6c3b701683bce9ecacb19baa034adafc49 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r10"
+PR = "r11"
 
 DEPENDS =+ "mpfr gmp libmpc elfutils"
 NATIVEDEPS = "mpfr-native gmp-native gettext-native libmpc-native elfutils-native"
index ee42fa74e5c0f3b67b834b6c6e77e97bf9daaf46..5d83e90a3c6b8712ce14f6726b3785c2ac460f6f 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r11"
+PR = "r12"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
index ed5d5e838d4d7f04a876d421ffab98f75b491302..8f20d20156ccc87f4d2a72d14f41cdbe8a19a0ce 100644 (file)
@@ -7,3 +7,5 @@ SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
 DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native"
 DEPENDS += "virtual/${TARGET_PREFIX}libc-initial-nativesdk"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc-intermediate-crosssdk"
+
+EXTRA_OECONF += " --with-headers=${STAGING_DIR_TCBOOTSTRAP}${SYSTEMHEADERS} "