[Pkg-fonts-devel] Bug#653534: Please enable hardened build flags
Package: fontforge
Version: 0.0.20110222-5
Severity: important
Tags: patch
Please enable hardened build flags through dpkg-buildflags.
Patch attached.
Cheers,
Moritz
diff -aur fontforge-0.0.20110222.orig/debian/rules fontforge-0.0.20110222/debian/rules
--- fontforge-0.0.20110222.orig/debian/rules 2011-07-19 22:44:30.000000000 +0200
+++ fontforge-0.0.20110222/debian/rules 2011-12-29 06:32:45.000000000 +0100
@@ -59,7 +59,7 @@
set -e; cp configure.dynamic.in configure.in; libtoolize --force --copy; aclocal; autoconf; \
fi
- ./configure $(CROSS) ${CONFIG_OPTS} CFLAGS="$(CFLAGS)"
+ ./configure $(CROSS) ${CONFIG_OPTS} $(shell dpkg-buildflags --export=configure)
touch $@
@@ -69,7 +69,7 @@
[ ! -f Makefile ] || $(MAKE) distclean
- ./configure $(CROSS) ${CONFIG_OPTS} --without-x CFLAGS="$(CFLAGS)"
+ ./configure $(CROSS) ${CONFIG_OPTS} --without-x $(shell dpkg-buildflags --export=configure)
touch $@
Nur in fontforge-0.0.20110222/debian: rules~.
Reply to: