Package: forked-daapd Version: 0.19gcd-2 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 forked-daapd-0.19gcd.orig/debian/rules forked-daapd-0.19gcd/debian/rules --- forked-daapd-0.19gcd.orig/debian/rules 2011-03-12 14:28:02.000000000 +0100 +++ forked-daapd-0.19gcd/debian/rules 2012-01-02 02:38:33.000000000 +0100 @@ -10,13 +10,11 @@ OSS4_OPTS = --with-oss4=/usr/include/linux endif -CFLAGS = -Wall -g +CFLAGS = `dpkg-buildflags --get CFLAGS` +CFLAGS += -Wall +LDFLAGS = `dpkg-buildflags --get LDFLAGS` +CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif @@ -31,7 +29,7 @@ config.status: autotools-stamp configure dh_testdir - ./configure \ + ./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --mandir=\$${prefix}/share/man \ Nur in forked-daapd-0.19gcd/debian: rules~.