## Old Delta ##
diff --git a/debian/rules b/debian/rules
index 43b2366..dcec8ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,13 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
endif
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+ export CC = $(DEB_HOST_GNU_TYPE)-gcc
+ INSTALL += --strip-program=$(DEB_HOST_GNU_TYPE)-strip
+endif
build-arch: config.status
$(checkdir)
## But the new debian/rules is down to just dh: ##
$ cat debian/rules
#! /usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --enable-shared --with-mailgroup
override_dh_fixperms:
dh_fixperms
@if [ -f debian/liblockfile-bin/usr/bin/dotlockfile ]; then \
chgrp mail debian/liblockfile-bin/usr/bin/dotlockfile; \
chmod 2755 debian/liblockfile-bin/usr/bin/dotlockfile; \
fi