diff options
Diffstat (limited to 'debian/patches/100_use-cppflags.patch')
-rw-r--r-- | debian/patches/100_use-cppflags.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/100_use-cppflags.patch b/debian/patches/100_use-cppflags.patch new file mode 100644 index 0000000..0b76fb2 --- /dev/null +++ b/debian/patches/100_use-cppflags.patch @@ -0,0 +1,17 @@ +Description: Use $(CPPFLAGS) with $(CPP) + Use CPPFLAGS from environment (dpkg-buildflags). + Necessary for hardening flags. +Author: Simon Ruderich <simon@ruderich.org> +Bug-Debian: http://bugs.debian.org/665491 + +--- w3m-0.5.3.orig/Makefile.in ++++ w3m-0.5.3/Makefile.in +@@ -150,7 +150,7 @@ parsetagx.o: html.c + + funcname.tab: $(DEFUNS) + (echo '#define DEFUN(x,y,z) x y';\ +- sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' $(DEFUNS)) | $(CPP) - | \ ++ sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' $(DEFUNS)) | $(CPP) $(CPPFLAGS) - | \ + awk '$$1 ~ /^[_A-Za-z]/ { \ + for (i=2;i<=NF;i++) { print $$i, $$1} \ + }' > $@.tmp |