From ceb1214632efd4b81fc5c796391f23b6acf2dada Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sun, 6 Sep 2015 10:32:50 +0200 Subject: 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 Signed-off-by: Thomas Petazzoni --- package/perl-html-parser/Config.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/perl-html-parser') diff --git a/package/perl-html-parser/Config.in b/package/perl-html-parser/Config.in index afdd5237bb..8a725f1dbd 100644 --- a/package/perl-html-parser/Config.in +++ b/package/perl-html-parser/Config.in @@ -1,8 +1,12 @@ config BR2_PACKAGE_PERL_HTML_PARSER bool "perl-html-parser" + depends on !BR2_STATIC_LIBS select BR2_PACKAGE_PERL_HTML_TAGSET help The HTML-Parser distribution is is a collection of modules that parse and extract information from HTML documents http://github.com/gisle/html-parser + +comment "perl-html-parser needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS -- cgit v1.2.3