Source: nspr
Severity: important
Tags: patch
Please enabled hardened build flags through dpkg-buildflags.
Patch attached.
Cheers,
Moritz
--- nspr-4.8.9.harden/debian/rules 2011-08-12 12:11:50.000000000 +0200
+++ nspr-4.8.9/debian/rules 2012-01-26 20:40:46.000000000 +0100
@@ -1,6 +1,11 @@
#!/usr/bin/make -f
-CFLAGS := -Wall -pipe
+DEB_CFLAGS_MAINT_APPEND=-Wall -pipe
+DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed"
+
+include /usr/share/dpkg/buildflags.mk
+export CPPFLAGS CFLAGS LDFLAGS
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS := --disable-optimize
@@ -33,8 +39,6 @@
sed -i '2!b;/^#/ i\exec "/usr/share/misc/'$$file'" "$$@"' mozilla/nsprpub/build/autoconf/$$file; \
done
- CFLAGS="$(CFLAGS)" \
- LDFLAGS="-Wl,--as-needed" \
dh_auto_configure -- \
$(CONFIGURE_FLAGS) \
--prefix=/usr \