From: Bdale Garbee Date: Wed, 26 Mar 2014 01:41:17 +0000 (-0700) Subject: update hardening build flags config X-Git-Tag: debian/2.9.0-4 X-Git-Url: https://git.gag.com/?p=debian%2Fcc1111;a=commitdiff_plain;h=a2b0c7901318d27e576fb3e02cbb855c240eda59 update hardening build flags config --- diff --git a/debian/rules b/debian/rules index 171c82a..51fd9ae 100755 --- a/debian/rules +++ b/debian/rules @@ -9,10 +9,12 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) export HOME=$(CURDIR)/build +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -CFLAGS += -Wall -Wno-comment +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) + +CFLAGS += -Wall -Wno-comment ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g -O0