From e26f648cd99a373793ca54a6d8bacce62e04cf58 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Mon, 5 Mar 2012 21:58:46 +0000 Subject: Enable hardened build flags --- debian/rules | 9 +++++---- 1 file 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 -- cgit v1.2.3