]> code.ossystems Code Review - openembedded-core.git/commitdiff
nativesdk: Set LIBCOVERRIDE to a value
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Dec 2013 16:33:47 +0000 (16:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Dec 2013 16:45:24 +0000 (16:45 +0000)
nativesdk was just unsetting LIBCOVERRIDE however that causes some build failures
for xorg-libs which used a libc override. This adds in a mechanism to force
nativesdk to glibc and give the option of allowing another selection like
uclibc if anyone ever does the work to make it operational.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/nativesdk.bbclass

index 21a69c7ee6cb0995bca5e636152a74d5b9ce8110..7f94258bf1d054e7864bb2d3e6d9b63ff53257c4 100644 (file)
@@ -4,8 +4,9 @@ EXCLUDE_FROM_WORLD = "1"
 
 STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
 
-# we dont want libc-uclibc or libc-glibc to kick in for nativesdk recipes
-LIBCOVERRIDE = ""
+# libc for the SDK can be different to that of the target
+NATIVESDKLIBC ?= "libc-glibc"
+LIBCOVERRIDE = ":${NATIVESDKLIBC}"
 CLASSOVERRIDE = "class-nativesdk"
 
 #