Package: xapian-omega
Version: 1.2.8-1
Severity: important
Tags: patch
Please enable hardened build flags through dpkg-buildflags.
Patch attached. (dpkg-buildflags abides "noopt" from DEB_BUILD_OPTIONS)
Cheers,
Moritz
diff -aur xapian-omega-1.2.8.harden/debian/rules xapian-omega-1.2.8/debian/rules
--- xapian-omega-1.2.8.harden/debian/rules 2011-12-17 12:10:54.000000000 +0100
+++ xapian-omega-1.2.8/debian/rules 2012-01-30 21:25:04.000000000 +0100
@@ -46,12 +46,6 @@
DEB_BUILD_OPTIONS += nocheck
endif
-# Handle DEB_BUILD_OPTIONS. Note that dh_strip handles nostrip for us.
-ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
- confflags += CFLAGS='-O0 -g' CXXFLAGS='-O0 -g'
-else
- confflags += CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'
-endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
@@ -77,7 +71,7 @@
commonconfflags := \
$(confflags) \
--prefix=/usr \
- --sysconfdir=/etc
+ --sysconfdir=/etc $(shell dpkg-buildflags --export=configure)
# With GCC3 and later this won't make a huge difference, but it'll save
# a bit of time and diskspace while building.
Nur in xapian-omega-1.2.8/debian: rules~.