From a2b0c7901318d27e576fb3e02cbb855c240eda59 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 25 Mar 2014 18:41:17 -0700 Subject: [PATCH] update hardening build flags config --- debian/rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.30.2