summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rwxr-xr-xrules9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules b/rules
index c248290929..b9eee7d20c 100755
--- a/rules
+++ b/rules
@@ -41,6 +41,12 @@ ifneq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
RUN_TEST = no
endif
+CONF_OPTIONS =
+# build against libdmalloc4 - it better be installed
+ifneq (,$(findstring with-dmalloc,$(DEB_BUILD_OPTIONS)))
+ CONF_OPTIONS += --with-dmalloc
+endif
+
configure: patch-stamp
config.status: configure
dh_testdir
@@ -51,7 +57,8 @@ config.status: configure
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--localstatedir=/var \
- --sysconfdir=/etc
+ --sysconfdir=/etc \
+ $(CONF_OPTIONS)
build: build-stamp