Comment 10 for bug 522106

Revision history for this message
Steve Langasek (vorlon) wrote :

The core of this patch is:

diff -u libunwind-0.99/debian/rules libunwind-0.99/debian/rules
--- libunwind-0.99/debian/rules
+++ libunwind-0.99/debian/rules
@@ -12,7 +12,7 @@
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -U_FORTIFY_SOURCE

 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -O0

That's an unacceptably large hammer, the use of which disables a number of security features that we have enabled by default in our compiler for a very good reason. Either the real *cause* of the bug should be identified and fixed, or the problematic bits of _FORTIFY_SOURCE should be *selectively* disabled.