summaryrefslogtreecommitdiff
path: root/dev-db/mariadb/mariadb-10.11.13.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-08-08 09:18:49 +0100
committerSam James <sam@gentoo.org>2025-08-08 09:19:43 +0100
commitd72826a5df63d0f2a96a15845537a65ce12a04db (patch)
treedd50cc3e6e78b9cce20a1bc2e9dbd8f53dbfce06 /dev-db/mariadb/mariadb-10.11.13.ebuild
parent82964175b77faccb0bed59779b5471fec83ff6ee (diff)
downloadgentoo-d72826a5df63d0f2a96a15845537a65ce12a04db.tar.gz
gentoo-d72826a5df63d0f2a96a15845537a65ce12a04db.tar.bz2
gentoo-d72826a5df63d0f2a96a15845537a65ce12a04db.zip
dev-db/mariadb: workaround unaligned access
Pass -fno-tree-vectorize with GCC 16 for now. I've reported it upstream to MariaDB and they've acknowledged the problem. Note that the "same" code is in MySQL but that was fixed quite some years back. Bug: https://jira.mariadb.org/browse/MDEV-37148 Closes: https://bugs.gentoo.org/959423 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mariadb/mariadb-10.11.13.ebuild')
-rw-r--r--dev-db/mariadb/mariadb-10.11.13.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-db/mariadb/mariadb-10.11.13.ebuild b/dev-db/mariadb/mariadb-10.11.13.ebuild
index 5a9d09ea5867..3b81ac9bc492 100644
--- a/dev-db/mariadb/mariadb-10.11.13.ebuild
+++ b/dev-db/mariadb/mariadb-10.11.13.ebuild
@@ -303,6 +303,9 @@ src_configure() {
# bug #283926, with GCC4.4, this is required to get correct behavior.
append-flags -fno-strict-aliasing
+ # Workaround for bug #959423 (https://jira.mariadb.org/browse/MDEV-37148)
+ tc-is-gcc && [[ $(gcc-major-version) -eq 16 ]] && append-flags -fno-tree-vectorize
+
# debug hack wrt #497532
local mycmakeargs=(
-DCMAKE_C_FLAGS_RELWITHDEBINFO="$(usex debug '' '-DNDEBUG')"