aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 8dadfdf..b2d34f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
+
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -28,6 +30,11 @@ confargs := --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--enable-image=$(DEVS) \
--enable-m17n --enable-unicode --enable-nls
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+confargs += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
+endif
+
builddir := .
build-indep: