summaryrefslogtreecommitdiff
path: root/debian/patches/libitm-no-fortify-source.diff
blob: 30821d3fb9e383c53b0e0ea7619419028a9f650b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# DP: Build libitm with -U_FORTIFY_SOURCE on x86 and x86_64.

Index: b/src/libitm/configure.tgt
===================================================================
--- a/src/libitm/configure.tgt
+++ b/src/libitm/configure.tgt
@@ -118,6 +118,12 @@
 	;;
 esac
 
+# FIXME: ftbfs with -D_FORTIFY_SOURCE (error: invalid use of '__builtin_va_arg_pack ())
+case "${target}" in
+  *-*-linux*)
+	XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE"
+esac
+
 # For the benefit of top-level configure, determine if the cpu is supported.
 test -d ${srcdir}/config/$ARCH || UNSUPPORTED=1