Bug#655140: Please enabled hardened build flags
Source: mldonkey
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 mldonkey-3.1.0.orig/debian/rules mldonkey-3.1.0/debian/rules
--- mldonkey-3.1.0.orig/debian/rules 2011-09-15 00:01:03.000000000 +0200
+++ mldonkey-3.1.0/debian/rules 2012-01-08 20:03:48.000000000 +0100
@@ -10,14 +10,6 @@
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
endif
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
override_dh_auto_clean:
# Update the PO, as suggested in "man 7 po-debconf"
debconf-updatepo
@@ -32,7 +24,7 @@
override_dh_auto_configure:
cd config; autoconf
- CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" ./configure $(confflags) \
+ ./configure $(confflags) $(shell dpkg-buildflags --export=configure) \
--enable-gui=newgui2 \
--enable-directconnect \
--disable-magic \
Nur in mldonkey-3.1.0/debian: rules~.
Reply to: