summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-04 04:51:50 +0000
committerSam James <sam@gentoo.org>2024-03-04 04:52:40 +0000
commita75e6bb902f21f884eddfda9efebf7d8ca6f04a9 (patch)
treec230ac1df1d535ecdffcef185f9ad3c3ec934e65 /dev-db/mariadb-connector-c
parentdev-db/mariadb: filter LTO (diff)
downloadgentoo-a75e6bb902f21f884eddfda9efebf7d8ca6f04a9.tar.gz
gentoo-a75e6bb902f21f884eddfda9efebf7d8ca6f04a9.tar.bz2
gentoo-a75e6bb902f21f884eddfda9efebf7d8ca6f04a9.zip
dev-db/mariadb-connector-c: filter LTO
Bug: https://jira.mariadb.org/browse/MDEV-11914 Bug: https://jira.mariadb.org/browse/MDEV-25633 Bug: https://bugs.gentoo.org/855233 Closes: https://bugs.gentoo.org/855236 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mariadb-connector-c')
-rw-r--r--dev-db/mariadb-connector-c/mariadb-connector-c-3.2.7.ebuild13
-rw-r--r--dev-db/mariadb-connector-c/mariadb-connector-c-3.3.4.ebuild13
-rw-r--r--dev-db/mariadb-connector-c/mariadb-connector-c-9999.ebuild13
3 files changed, 30 insertions, 9 deletions
diff --git a/dev-db/mariadb-connector-c/mariadb-connector-c-3.2.7.ebuild b/dev-db/mariadb-connector-c/mariadb-connector-c-3.2.7.ebuild
index 0f94f5ae5fd0..455985c30d27 100644
--- a/dev-db/mariadb-connector-c/mariadb-connector-c-3.2.7.ebuild
+++ b/dev-db/mariadb-connector-c/mariadb-connector-c-3.2.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -14,7 +14,7 @@ else
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 x86"
fi
-inherit cmake-multilib toolchain-funcs
+inherit cmake-multilib flag-o-matic toolchain-funcs
DESCRIPTION="C client library for MariaDB/MySQL"
HOMEPAGE="https://mariadb.org/"
@@ -64,10 +64,17 @@ src_prepare() {
cmake_src_prepare
}
-multilib_src_configure() {
+src_configure() {
# mariadb cannot use ld.gold, bug #508724
tc-ld-disable-gold
+ # bug #855233 (MDEV-11914, MDEV-25633) at least
+ filter-lto
+
+ cmake-multilib_src_configure
+}
+
+multilib_src_configure() {
local mycmakeargs=(
-DWITH_EXTERNAL_ZLIB=ON
-DWITH_SSL:STRING=$(usex ssl $(usex gnutls GNUTLS OPENSSL) OFF)
diff --git a/dev-db/mariadb-connector-c/mariadb-connector-c-3.3.4.ebuild b/dev-db/mariadb-connector-c/mariadb-connector-c-3.3.4.ebuild
index 2778d1261848..3ebe51ce18fc 100644
--- a/dev-db/mariadb-connector-c/mariadb-connector-c-3.3.4.ebuild
+++ b/dev-db/mariadb-connector-c/mariadb-connector-c-3.3.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -14,7 +14,7 @@ else
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86"
fi
-inherit cmake-multilib toolchain-funcs
+inherit cmake-multilib flag-o-matic toolchain-funcs
DESCRIPTION="C client library for MariaDB/MySQL"
HOMEPAGE="https://mariadb.org/"
@@ -66,10 +66,17 @@ src_prepare() {
cmake_src_prepare
}
-multilib_src_configure() {
+src_configure() {
# mariadb cannot use ld.gold, bug #508724
tc-ld-disable-gold
+ # bug #855233 (MDEV-11914, MDEV-25633) at least
+ filter-lto
+
+ cmake-multilib_src_configure
+}
+
+multilib_src_configure() {
local mycmakeargs=(
-DWITH_EXTERNAL_ZLIB=ON
-DWITH_SSL:STRING=$(usex ssl $(usex gnutls GNUTLS OPENSSL) OFF)
diff --git a/dev-db/mariadb-connector-c/mariadb-connector-c-9999.ebuild b/dev-db/mariadb-connector-c/mariadb-connector-c-9999.ebuild
index 62a90589ade5..416f40ada533 100644
--- a/dev-db/mariadb-connector-c/mariadb-connector-c-9999.ebuild
+++ b/dev-db/mariadb-connector-c/mariadb-connector-c-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -14,7 +14,7 @@ else
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86"
fi
-inherit cmake-multilib toolchain-funcs
+inherit cmake-multilib flag-o-matic toolchain-funcs
DESCRIPTION="C client library for MariaDB/MySQL"
HOMEPAGE="https://mariadb.org/"
@@ -64,10 +64,17 @@ src_prepare() {
cmake_src_prepare
}
-multilib_src_configure() {
+src_configure() {
# mariadb cannot use ld.gold, bug #508724
tc-ld-disable-gold
+ # bug #855233 (MDEV-11914, MDEV-25633) at least
+ filter-lto
+
+ cmake-multilib_src_configure
+}
+
+multilib_src_configure() {
local mycmakeargs=(
-DWITH_EXTERNAL_ZLIB=ON
-DWITH_SSL:STRING=$(usex ssl $(usex gnutls GNUTLS OPENSSL) OFF)