Source: libio-aio-perl Version: 4.79-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
libio-aio-perl fails to cross build from source, because Makefile.PL invokes configure without passing --host. Given that the relevant invocation is upstream, any solution affects upstream. As such, I propose deriving the host argument from the compiler (which is correctly detected by Makefile.PL). What do you think? I'm attaching a patch for your convenience. Helmut
--- libio-aio-perl-4.79.orig/Makefile.PL +++ libio-aio-perl-4.79/Makefile.PL @@ -63,8 +63,10 @@ $ENV{LDFLAGS} = "$Config{ldflags} $Config{ccdlflags}"; $ENV{LINKER} = $Config{ld}; # nonstandard $ENV{LIBS} = "-L$Config{archlibexp}/CORE -L$Config{privlibexp} -lperl $Config{perllibs}"; + my $hostflag = ""; + $hostflag = "--host=$1" if ($Config{cc} =~ m/(.+-.+-.+)-g?cc/); - system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E" + system $ENV{SHELL}, -c => "./configure --prefix \Q$Config{prefixexp}\E $hostflag" and exit $? >> 8; } }