]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_base.bbclass:fix toolchain relocation issues
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 11 Mar 2013 07:04:17 +0000 (15:04 +0800)
committerRoss Burton <ross.burton@intel.com>
Tue, 23 Apr 2013 09:38:46 +0000 (10:38 +0100)
commit9c10356bde6d303d84daadb8c1170e08e774f5af
treeb7ca7b3cf224fccb005833788bd1c64ea4eda751
parent6571278b896474c58bf5552d0e46237f2cf5096c
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.

Cherry-pick commit aeb53bd78991af9fbb60d64176ec864cfc2ddbb9

[YOCTO #3984]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
meta/classes/populate_sdk_base.bbclass