From: Marcel Denia Date: Sat, 2 May 2015 14:08:00 +0000 (+0200) Subject: perl: Enable threading in host-perl as well if threading is selected X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=109ac2c3830616d1fda7be89193ddf3d8b2bca9e;p=openwrt-packages.git perl: Enable threading in host-perl as well if threading is selected While host-perl only exists to run build scripts(and thus, should have no influence on built packages at all), most packages depend heavily on the feature set of the perl installation that ran their configuration scripts. This change makes them see that threading support is enabled(if it actually is selected). We can't use configuration symbol overrides for this one, as they are visible to host-perl as well. Using overrides would make it act as if it had threading support enabled without actually having it. Signed-off-by: Marcel Denia --- diff --git a/lang/perl/Makefile b/lang/perl/Makefile index abd327f62..0365ffcff 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -94,7 +94,7 @@ endef # Static host perl define Host/Configure - ( cd $(HOST_BUILD_DIR); ./Configure -der -Uusedl -Duserelocatableinc -Dprefix=$(HOST_PERL_PREFIX) ) + ( cd $(HOST_BUILD_DIR); ./Configure -der -Uusedl -Duserelocatableinc -Dprefix=$(HOST_PERL_PREFIX) $(if $(CONFIG_PERL_THREADS),-Dusethreads,)) endef define Host/Install