aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 21:58:46 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 21:58:46 +0000
commite26f648cd99a373793ca54a6d8bacce62e04cf58 (patch)
tree1c4dd2fcfbbf56d795eed377152a82ed58be84c1
parent3c357b0af589371ed64d29917cbfadf060547129 (diff)
downloadlibconfig-e26f648cd99a373793ca54a6d8bacce62e04cf58.tar.gz
Enable hardened build flags
Diffstat (limited to '')
-rwxr-xr-xdebian/rules9
1 files changed, 5 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 23dad68..c0f8375 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,11 +5,12 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CFLAGS = $(dpkg-buildflags --get CFLAGS)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -Wall -g
-LDFLAGS = $(dpkg-buildflags --get LDFLAGS)
-LDFLAGS += defs
-CPPFLAGS = $(dpkg-buildflags --get CPPFLAGS)
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+LDFLAGS += -Wl,-z,defs
+CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+export CFLAGS CPPFLAGS LDFLAGS
# shared library versions, option 1
version=9