summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2019-10-17 11:10:38 +0100
committerNiko Tyni <ntyni@debian.org>2019-10-18 17:52:44 +0100
commit0c0d0d9cacaa29d66862bf2dd728b24b689559d4 (patch)
tree4dc7957fb450340f7420f1516fb113bbaf9e7286
parente3458777c16a5371df1677a308dc92cf72caced6 (diff)
downloaddebhelper-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-xdh_perl5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh_perl b/dh_perl
index d79b7957..ad6cd6dd 100755
--- a/dh_perl
+++ b/dh_perl
@@ -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) {