Package: pimd
Version: 2.1.8-1
Severity: important
Tags: patch

Please enabled hardened build flags through dpkg-buildflags.

Patch attached. (dpkg-buildflags abides "noopt" from DEB_BUILD_OPTIONS)

Cheers,
        Moritz
diff -aur pimd-2.1.8.orig/debian/rules pimd-2.1.8/debian/rules
--- pimd-2.1.8.orig/debian/rules	2011-10-24 09:09:22.000000000 +0200
+++ pimd-2.1.8/debian/rules	2012-01-02 02:07:45.000000000 +0100
@@ -5,13 +5,15 @@
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 
-CFLAGS = -Wall -Werror -g
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += -Wall -Werror
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
+
+export CFLAGS
+export LDFLAGS
+export CPPFLAGS
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s
 endif

Reply via email to