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.
The core of this patch is:
diff -u libunwind- 0.99/debian/ rules libunwind- 0.99/debian/ rules 0.99/debian/ rules 0.99/debian/ rules GNU_TYPE)
--- libunwind-
+++ libunwind-
@@ -12,7 +12,7 @@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_
-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.