Set bindnow linker flag in debian/rules.
[debian/cdck.git] / debian / rules
index dbc29f8602b52b23fe4417a7eae54a4ef88207c7..c8b068aaafd228bef148736652ad4e8a18d35daf 100755 (executable)
@@ -1,20 +1,10 @@
 #!/usr/bin/make -f
 
-%:
-       dh --with quilt $@
-
-override_dh_auto_configure:
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
+export CONFIG_SHELL=/bin/bash
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
-       dh_auto_configure
-
-override_dh_auto_build:
-       dh_auto_build -- -j1
+%:
+       dh $@ --no-parallel
 
 override_dh_auto_install:
        dh_auto_install -- DESTDIR=$(CURDIR)/debian/cdck