Source: libtunepimp
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 libtunepimp-0.5.3.orig/debian/rules libtunepimp-0.5.3/debian/rules
--- libtunepimp-0.5.3.orig/debian/rules 2012-01-06 01:09:10.000000000 +0100
+++ libtunepimp-0.5.3/debian/rules 2012-01-06 01:10:24.000000000 +0100
@@ -9,12 +9,10 @@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DESTDIR = $(CURDIR)/debian/tmp
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += -Wall
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
config.status: configure patch-stamp
dh_testdir
@@ -27,7 +25,7 @@
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --without-included-ltdl \
- CFLAGS="$(CFLAGS)"
+ CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
build: build-stamp
build-stamp: config.status tunepimp.doxy
Nur in libtunepimp-0.5.3/debian: rules~.