diff options
author | Pierre Chifflier <pollux@debian.org> | 2012-01-23 00:30:57 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2012-01-23 00:32:01 +0100 |
commit | 53f9140d9a1a039da4b65c57ecbf8ea4ad98d283 (patch) | |
tree | 77e1bf07ce222a7d9de4be9dfc27585285ecfd74 | |
parent | 56d1df1861d8c9011864db958a7008a09033c47e (diff) | |
download | zsh-53f9140d9a1a039da4b65c57ecbf8ea4ad98d283.tar.gz zsh-53f9140d9a1a039da4b65c57ecbf8ea4ad98d283.zip |
Enable hardening options (Closes: #644400)
-rwxr-xr-x | debian/rules | 8 |
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 |