perl: Fix various nativesdk build issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Aug 2012 23:36:24 +0000 (16:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Sep 2012 12:52:06 +0000 (05:52 -0700)
commit266861d7124495d10951a8a0542ab8b88bf8847a
tree324ca03be77dc319824a4aecc4666c0443c275b9
parentcba2c3ef424983c618668e5a079a2d21e1fcb970
perl: Fix various nativesdk build issues

The config.sh lists -fstack-protector but this isn't in LDFLAGS. This
can result in perl compilation failures due to the mismatch. Adding the
flag to LDFLAGS solves makes all the flags consistent and avoids build
failures from missing symbols.

It was also found that the path substitutions made by the sed statement
can conflict with each other and you can end up with $prefix$prefix type
expressions in config.sh-X which can break the build in unusual ways.
This patch anchors the expressions to ensure only true matches are
replaced.

(From OE-Core rev: 38234f2e276356b1d77a87ceabc486107e336d19)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl_5.14.2.bb