support/script/scancpan: add support for BR2_PREFER_STATIC_LIB
commit1c7ab72386f0ff34ef0e6247ea3cfa1524b16ff7
authorFrancois Perrad <fperrad@gmail.com>
Thu, 17 Jul 2014 16:32:58 +0000 (17 18:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 17 Jul 2014 18:49:39 +0000 (17 20:49 +0200)
tree58668512b50650b49bc7099c7ae751a610761563
parent31d8a19a9071592311c0d51ea851a044bd06b06f
support/script/scancpan: add support for BR2_PREFER_STATIC_LIB

Perl extensions are loaded at runtime with dlopen(), so it does not
make sense to even build extensions that are written in C when
BR2_PREFER_STATIC_LIB is enabled. A Perl module written in C or with a
dependency on a module written in C is not available when doing a
static build.

Therefore, this commit adapts the scancpan script to automatically
generate a dependency on !BR2_PREFER_STATIC_LIB when the Perl module
would not work in a static-only configuration.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/scancpan