summaryrefslogtreecommitdiffstats
path: root/debian/patches/libitm-no-fortify-source.diff
blob: fe0c7059276c25576a27e21b2b75c9efe853a388 (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
@@ -124,6 +124,12 @@ EOF
 	;;
 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