aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-06-28 09:19:38 -0700
committerTom Rini <tom_rini@mentor.com>2011-06-28 09:28:30 -0700
commit82c21e61d122e3c92fb86831bc1170263310acad (patch)
treea6a8774dfe06de53728d6d914f6a05a5f67006ee
parentc53b7e3238a96d9b8432fc2129ffc33b71a8b193 (diff)
downloadopenembedded-82c21e61d122e3c92fb86831bc1170263310acad.tar.gz
cpan.bbclass: Make cpan_do_configure undo the perl.real unwrapping
The cpan build system unwrapps our perl -> perl.real shell script and generates Makefile's that call perl.real directly and thus fail to be relocable. So at the end, regex them back to calling perl. Signed-off-by: Tom Rini <tom_rini@mentor.com>
-rw-r--r--classes/cpan.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index b522423243..97de5fbfb1 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -20,6 +20,7 @@ cpan_do_configure () {
-e "s:\(LDDLFLAGS.*\)${STAGING_LIBDIR_NATIVE}:\1${STAGING_LIBDIR}:" \
Makefile
fi
+ find . -name Makefile | xargs sed -i -e "s:bin/perl.real:bin/perl:g"
}
cpan_do_compile () {