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

--- 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