Source: slang2
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 slang2-2.2.4.orig/debian/rules slang2-2.2.4/debian/rules
--- slang2-2.2.4.orig/debian/rules 2011-08-19 22:10:18.000000000 +0200
+++ slang2-2.2.4/debian/rules 2012-01-14 16:54:55.000000000 +0100
@@ -3,17 +3,14 @@
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
+DEB_CFLAGS_MAINT_APPEND= -fno-strength-reduce -D_REENTRANT -D_XOPEN_SOURCE=500 `dpkg-buildflags --get CPPFLAGS`
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
# Magic debhelper rule
%:
dh $@
-CFLAGS := -g -fno-strength-reduce -D_REENTRANT -D_XOPEN_SOURCE=500
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
override_dh_auto_configure:
dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
Nur in slang2-2.2.4/debian: rules~.