populate_sdk_base.bbclass:fix toolchain relocation issues
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 1 Mar 2013 09:58:31 +0000 (17:58 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Mar 2013 13:03:29 +0000 (13:03 +0000)
commitdd9f021f437d9c999d17592dc11cb98d62bd2ef2
tree512f5e3dfce051c33ab6bd77455bb05ddb931ad8
parent92c6a69645cc8806b752d71e40080d0de7099ba3
populate_sdk_base.bbclass:fix toolchain relocation issues

When run "autoreconf" in toolchain, there is an error if the host's perl's
version is not the same as the one in the SDK, the error says that the
executable perl mismatches the perl lib's version.

This is because most of the autotools' scripts use the "#!/usr/bin/perl -w"
which is host perl, but the gnu-configize uses "#! /usr/bin/env perl" which
invokes the perl wrapper in the SDK, and the wrapper will set the PERL5LIB to
the SDK which causes the mismatch. We can make all the perl scripts to use the
host perl or the SDK perl to fix this problem.

[YOCTO #3338]

(From OE-Core rev: 365aa1412a3d31128cb3df02959acdc7df5f2ebc)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass