pkg-perl: set PERL_USE_UNSAFE_INC
authorFrancois Perrad <fperrad@gmail.com>
Sat, 7 Jan 2017 08:12:17 +0000 (09:12 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 9 Jan 2017 08:47:50 +0000 (09:47 +0100)
Recent perls are built with the `default_inc_excludes_dot` option.
As many CPAN modules rely on '.' in @INC, the toolchain
must set `PERL_USE_UNSAFE_INC`.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-perl.mk

index a02781015654fe61b34e1dd5197b8d8c53b2f672..4b205980313cf7634dfd98e2a7b7551d690a4f6e 100644 (file)
@@ -20,7 +20,7 @@
 ################################################################################
 
 PERL_ARCHNAME = $(ARCH)-linux
-PERL_RUN = PERL5LIB= $(HOST_DIR)/usr/bin/perl
+PERL_RUN = PERL5LIB= PERL_USE_UNSAFE_INC=1 $(HOST_DIR)/usr/bin/perl
 
 ################################################################################
 # inner-perl-package -- defines how the configuration, compilation and