summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <[email protected]>2025-08-08 09:18:49 +0100
committerSam James <[email protected]>2025-08-08 09:19:43 +0100
commitd72826a5df63d0f2a96a15845537a65ce12a04db (patch)
treedd50cc3e6e78b9cce20a1bc2e9dbd8f53dbfce06 /dev-db/mariadb/mariadb-10.6.22.ebuild
parentnet-im/element-desktop-bin: add 1.11.108, drop 1.11.105 (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 <[email protected]>
Diffstat (limited to 'dev-db/mariadb/mariadb-10.6.22.ebuild')
-rw-r--r--dev-db/mariadb/mariadb-10.6.22.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-db/mariadb/mariadb-10.6.22.ebuild b/dev-db/mariadb/mariadb-10.6.22.ebuild
index 7a90d25a4e6c..762f9c2b4679 100644
--- a/dev-db/mariadb/mariadb-10.6.22.ebuild
+++ b/dev-db/mariadb/mariadb-10.6.22.ebuild
@@ -315,6 +315,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
+
CMAKE_BUILD_TYPE="RelWithDebInfo"
# debug hack wrt #497532