summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-12-18 20:44:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-12-18 20:46:24 +0000
commitdac38d3da3d705026e4b6fdb585860a7218571fb (patch)
tree50a24476b479f70c334375bda69f26fe334357a9
parentUpdating to standards version 4.1.2. (diff)
downloadplzip-dac38d3da3d705026e4b6fdb585860a7218571fb.tar.xz
plzip-dac38d3da3d705026e4b6fdb585860a7218571fb.zip
Applying patch from Helmut Grohne <helmut@subdivi.de> to fix FTBFS when cross-compiling (Closes: #884722).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/rules9
1 files changed, 8 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 607cb6b..97a7a56 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,17 @@
#!/usr/bin/make -f
-DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(origin CXX),default)
+CXX := $(DEB_HOST_GNU_TYPE)-g++
+endif
%:
dh ${@}
+override_dh_auto_configure:
+ dh_auto_configure -- 'CXX=$(CXX)'
+
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(CURDIR)/debian/plzip