aboutsummaryrefslogtreecommitdiff
path: root/package/perl-libwww-perl
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2015-09-06 10:32:50 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-20 15:14:10 +0200
commitceb1214632efd4b81fc5c796391f23b6acf2dada (patch)
tree20bbe44031ad71cccdcfdc398b73b23ef8b1e5b3 /package/perl-libwww-perl
parent259fe50be73e29025d70b6c166b2705286ce72f6 (diff)
downloadbuildroot-ceb1214632efd4b81fc5c796391f23b6acf2dada.tar.gz
buildroot-ceb1214632efd4b81fc5c796391f23b6acf2dada.tar.bz2
scancpan: fix detection of native module
When a module is native or depends of a native module, it must be disabled for static builds via its Config.in We detect native modules by looking at the filenames listed in the MANIFEST. If there is a file which looks like it contains code that much be compiled (e.g. .c, .h and so on...), then we exclude that module (and its dependencies) from static builds. That's what we tried to do so far, but failed when there was a comment on the same line as the filename in the manifest, like so: foo-bar.c # Bla bla bla Fix that by detecting either endof-line (as currently done) or end-of-string. For an example of failed build of perl-html-parser, see http://autobuild.buildroot.net/results/128/128671dfa23d843698a63220c2fac1f44e1d5845/ [Thomas: use better commit log proposed by Yann E. Morin.] Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/perl-libwww-perl')
-rw-r--r--package/perl-libwww-perl/Config.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/perl-libwww-perl/Config.in b/package/perl-libwww-perl/Config.in
index 3db0070a40..fc46bf1dff 100644
--- a/package/perl-libwww-perl/Config.in
+++ b/package/perl-libwww-perl/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_PERL_LIBWWW_PERL
bool "perl-libwww-perl"
+ depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_PERL_ENCODE_LOCALE
select BR2_PACKAGE_PERL_FILE_LISTING
select BR2_PACKAGE_PERL_HTML_PARSER
@@ -16,3 +17,6 @@ config BR2_PACKAGE_PERL_LIBWWW_PERL
The World-Wide Web library for Perl
https://metacpan.org/release/libwww-perl
+
+comment "perl-libwww-perl needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS