summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Chifflier <pollux@debian.org>2012-01-23 00:30:57 +0100
committerAxel Beckert <abe@deuxchevaux.org>2012-01-23 00:32:01 +0100
commit53f9140d9a1a039da4b65c57ecbf8ea4ad98d283 (patch)
tree77e1bf07ce222a7d9de4be9dfc27585285ecfd74
parent56d1df1861d8c9011864db958a7008a09033c47e (diff)
downloadzsh-53f9140d9a1a039da4b65c57ecbf8ea4ad98d283.tar.gz
zsh-53f9140d9a1a039da4b65c57ecbf8ea4ad98d283.zip
Enable hardening options (Closes: #644400)
-rwxr-xr-xdebian/rules8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 1257c767c..95d610292 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,12 +10,16 @@ ifeq (zsh-beta,$(package))
snapshot_date := $(shell dpkg-parsechangelog | sed -n '/^Version: [0-9.][0-9.]*.*+20[0-9][0-9]\([0-9][0-9][0-9][0-9]\)-[0-9][0-9]*$$/ {s//\1/;p}')
endif
-CFLAGS = -Wall -g
+-include /usr/share/dpkg/buildflags.mk
+export CFLAGS LDFLAGS
+H_LDFLAGS = $(LDFLAGS)
+
+CFLAGS += -Wall -g
ifeq (zsh-beta,$(package))
CFLAGS += -W
endif
-CONFIGFLAGS = --prefix=/usr --mandir=/usr/share/man --bindir=/bin LDFLAGS="-Wl,--as-needed -g"
+CONFIGFLAGS = --prefix=/usr --mandir=/usr/share/man --bindir=/bin LDFLAGS="-Wl,--as-needed -g $(H_LDFLAGS)"
ifeq (zsh-beta,$(package))
CONFIGFLAGS += --program-suffix=-beta