summaryrefslogtreecommitdiff
path: root/debian/patches/libitm-no-fortify-source.diff
blob: 8f15964846c05f028ec0d00f331ad6a83cd167dd (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
@@ -119,6 +119,12 @@ case "${target_cpu}" in
 	;;
 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