[oe] 'LIBC' variable clashes with perl variable
Koen Kooi
k.kooi at student.utwente.nl
Sun Jul 11 17:33:07 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-07-10 19:01, Phil Blundell wrote:
> On Sun, 2010-07-11 at 15:45 +0200, Koen Kooi wrote:
>> 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?
>
> How is perl getting to see that variable? I don't think it ought to be
> exported.
>
> I don't have any problem with renaming it, though I do wonder whether it
> would be better to just abolish it altogether in favour of inspecting
> ${HOST_OS}.
LIBC is currently used to set it for bitbake, e.g.:
MACHINE=beagleboard LIBC=eglibc bitbake foo
MACHINE=beagleboard LIBC=uclibc bitbake foo
Which also means we can't use any '_', so it would be TARGETLIBC or HOSTOS.
I'm not sure what the impact would be when we would unexport it, though.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMOgBTMkyGM64RGpERAqO9AJ4lSJbHDviQjgkIK5XkTC6/9voHIQCcDSrq
CK72iQi4N6rTh7x9hXt3jpM=
=XkZF
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list