diff options
author | gregor herrmann <gregoa@debian.org> | 2021-11-06 02:08:40 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2021-11-06 02:08:40 +0100 |
commit | 5d364be56a324303825c89e534fcf5d41d454b48 (patch) | |
tree | ae9ff6b644c8d8f7c2df1d77f11b26f4af2dd7ac | |
parent | cab04835e9a17f1206739b26b4f6f523433c7a06 (diff) |
debian/rules: make usage of $Config{vendorarch} cross-build-compatible.
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index f5e52e6..23270b8 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,9 @@ PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) -ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') +include /usr/share/dpkg/architecture.mk +PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') +ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}') export DEB_BUILD_MAINT_OPTIONS = hardening=+all |