perl-native: fix ExtUtils::Liblist::Kid library check for cross-build
authorRoman I Khimov <khimov@altell.ru>
Tue, 23 Nov 2010 11:21:39 +0000 (14:21 +0300)
committerRoman I Khimov <khimov@altell.ru>
Tue, 28 Dec 2010 19:51:23 +0000 (22:51 +0300)
commit319f102271e020652dec091150d630b545597426
tree8c05e3f9c49904602296cc7fcb768bd731121e74
parentcd0141bdbec23521022447fe87c82e10cb9a500e
perl-native: fix ExtUtils::Liblist::Kid library check for cross-build

MakeMaker uses it to check for libraries presence and if the library is not
found in host dirs (/lib, /usr/lib, etc) it fails with messages like:

Note (probably harmless): No library found for -lpcap

Unfortunately it's not harmless, since MakeMaker removes such libs from flags
passed to link target modules which obviously breaks them.

Seen that on Net::PCAP, the package built fine, but the actual library wasn't
linked to pcap, thus not working.

In order for target perl libraries to build properly native perl needs to be patched.
As I don't know exact semantic and all use-cases of libpth config variable
I've workarounded this issue by prepending ldflags (and this does contain the
right path) to lib flags.

Signed-off-by: Roman I Khimov <khimov@altell.ru>
Acked-by: Khem Raj <raj.khem@gmail.com>
recipes/perl/perl-5.10.1/perl-fix-cross-library-check.patch [new file with mode: 0644]
recipes/perl/perl-native_5.10.1.bb