summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-08-02 21:31:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-08-02 21:31:42 +0000
commit58a453f69b02aabe501c58d1bf0a473b2eb3b209 (patch)
tree1919f16bd9a8a2ce624989b3f6a33b13f62b6590 /debian/rules
parentReleasing debian version 1.19-2. (diff)
downloadlzip-58a453f69b02aabe501c58d1bf0a473b2eb3b209.tar.xz
lzip-58a453f69b02aabe501c58d1bf0a473b2eb3b209.zip
Applying patch from Helmut Grohne <helmut@subdivi.de> to fix FTBFS when cross-compiling (Closes: #870516).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index e04f219..b89f67e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,17 @@
#!/usr/bin/make -f
+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/lzip