diff options
author | Niko Tyni <ntyni@debian.org> | 2019-10-17 11:10:38 +0100 |
---|---|---|
committer | Niko Tyni <ntyni@debian.org> | 2019-10-18 17:52:44 +0100 |
commit | 0c0d0d9cacaa29d66862bf2dd728b24b689559d4 (patch) | |
tree | 4dc7957fb450340f7420f1516fb113bbaf9e7286 | |
parent | e3458777c16a5371df1677a308dc92cf72caced6 (diff) | |
download | debhelper-0c0d0d9cacaa29d66862bf2dd728b24b689559d4.tar.gz |
dh_perl: detect cross built XS modules
When cross building, scan the host architecture search path for Perl
compiled plugins (XS modules) rather than the build architecture one.
-rwxr-xr-x | dh_perl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -73,6 +73,11 @@ init(); my $vendorlib = substr $Config{vendorlib}, 1; my $vendorarch = substr $Config{vendorarch}, 1; +if (is_cross_compiling()) { + my $incdir = perl_cross_incdir(); + $vendorarch = substr qx/perl -I$incdir -MConfig -e 'print \$Config{vendorarch}'/, 1 + if defined $incdir; +} # Cleaning the paths given on the command line foreach (@ARGV) { |