cross build support in perl 5.22.1-7

Wookey wookey at wookware.org
Fri Sep 15 16:24:02 UTC 2017


On 2017-09-15 16:45 +0100, Wookey wrote:
> However using that:
>        "$Config{incpth}", "$sysroot/usr/local/include",
> 
>  doesn't work, probably due to multiple paths (my perl foo is very rusty).

OK, so slitting the paths works:
        my ($linux_errno_h) = grep { -e $_ } map { "$_/errno.h" }
            split( / /,"$Config{incpth}"), "$sysroot/usr/local/include/",
            split / / => $Config{locincpth} or
                die "Cannot find errno.h";

But as that path includes /usr/include at the end, I'm don't think
this is strictly correct, and a more sophisticated fix would be
preferable.

Fixing that lets the build complete :-)

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20170915/9604629f/attachment.sig>


More information about the Perl-maintainers mailing list