PKG_NAME:=perl
PKG_VERSION:=$(PERL_VERSION)
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_URL:=\
https://cpan.metacpan.org/src/5.0 \
-Dowrt:threads=$(if $(CONFIG_PERL_THREADS),yes,no) \
-Dowrt:staging_dir='$(STAGING_DIR)' \
-Dowrt:host_perl_prefix='$(HOST_PERL_PREFIX)' \
+ -Dsysroot='$(TOOLCHAIN_DIR)' \
files/version.config \
files/base.config \
files/$(patsubst i386,i486,$(ARCH)).config \
--- /dev/null
+--- a/ext/Errno/Errno_pm.PL
++++ b/ext/Errno/Errno_pm.PL
+@@ -133,7 +133,7 @@
+ # Some Linuxes have weird errno.hs which generate
+ # no #file or #line directives
+ my ($linux_errno_h) = grep { -e $_ } map { "$_/errno.h" }
+- "$sysroot/usr/include", "$sysroot/usr/local/include",
++ "$sysroot/usr/include", "$sysroot/usr/local/include", "$sysroot/include",
+ split / / => $Config{locincpth} or
+ die "Cannot find errno.h";
+ $file{$linux_errno_h} = 1;