summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2013-04-24 15:45:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:45:06 +0100
commit3e79775a827a4256dd48160dcaaa98f5250c1499 (patch)
tree797e4acda89e651a74142acdbe6870c2ff3be55c /meta/classes/cpan.bbclass
parent2895bcf95a1ecb7feea1c6b458d8431cbf2c64f0 (diff)
downloadpoky-3e79775a827a4256dd48160dcaaa98f5250c1499.tar.gz
poky-3e79775a827a4256dd48160dcaaa98f5250c1499.tar.bz2
poky-3e79775a827a4256dd48160dcaaa98f5250c1499.zip
cpan.bbclass: use '|' as sed separator for entry with paths
With normal toolchain it works. But fails badly when external Linaro toolchain is used. And this is why: -e "s/^\(CCFLAGS =.*\)/\1 -isystem/home/hrw/devel/canonical/aarch64/openembedded/build/linaro-tcwg/gcc-linaro-aarch64-linux-gnu-4.7-2013.04-20130415_linux//aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types/" \ (From OE-Core rev: f6244a9d3da7c301f19efc114c2aaf39e5eec299) Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan.bbclass')
-rw-r--r--meta/classes/cpan.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index 957a6e2bfa..bef9e82685 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -26,7 +26,7 @@ cpan_do_configure () {
test -f $f2 || continue
sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
-e 's/perl.real/perl/' \
- -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
+ -e "s|^\(CCFLAGS =.*\)|\1 ${CFLAGS}|" \
$f2
done
fi