[oe] 'LIBC' variable clashes with perl variable

Tom Rini tom_rini at mentor.com
Thu Jul 29 01:31:07 UTC 2010


Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> Perl (among others) uses the 'LIBC' variable to point its linker to
> libc.so.6, which fails due to OE redefing LIBC.
> 
> Any objections to renaming LIBC to TARGET_LIBC in OE?

bitbake.conf: Unexport LIBC from the environment

As spoted by Koen at least perl makes use of LIBC coming from the 
environment to be meaningful, so don't export it as it doesn't match our 
meaning.

Signed-off-by: Tom Rini <tom_rini at mentor.com>

diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index d523519..ddb6a79 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -799,3 +799,6 @@ TARGET_ARCH[unexport] = "1"
  # (breaks sysvinit at least)
  DISTRO[unexport] = "1"

+# Make sure that LIBC isn't exported
+# (breaks perl at least)
+LIBC[unexport] = "1"

-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list