summaryrefslogtreecommitdiffstats
path: root/debian/patches/libitm-no-fortify-source.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:22:56 +0000
commit3f472a4e5ca21e3ddb13737473e636b2b11a408a (patch)
tree7db1ab317884b9f6e04b6e13737c1679879cb97a /debian/patches/libitm-no-fortify-source.diff
parentAdding upstream version 13.2.0. (diff)
downloadgcc-13-3f472a4e5ca21e3ddb13737473e636b2b11a408a.tar.xz
gcc-13-3f472a4e5ca21e3ddb13737473e636b2b11a408a.zip
Adding debian version 13.2.0-10.debian/13.2.0-10debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/libitm-no-fortify-source.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/libitm-no-fortify-source.diff b/debian/patches/libitm-no-fortify-source.diff
new file mode 100644
index 0000000..fe0c705
--- /dev/null
+++ b/debian/patches/libitm-no-fortify-source.diff
@@ -0,0 +1,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
+