diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-05 21:58:46 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-05 21:58:46 +0000 |
commit | e26f648cd99a373793ca54a6d8bacce62e04cf58 (patch) | |
tree | 1c4dd2fcfbbf56d795eed377152a82ed58be84c1 | |
parent | 3c357b0af589371ed64d29917cbfadf060547129 (diff) | |
download | libconfig-e26f648cd99a373793ca54a6d8bacce62e04cf58.tar.gz |
Enable hardened build flags
-rwxr-xr-x | debian/rules | 9 |
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 |