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>
This commit is contained in:
Sam James
2024-03-04 04:52:40 +00:00
parent 3feee7984b
commit a75e6bb902
3 changed files with 30 additions and 9 deletions
@@ -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)
@@ -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)
@@ -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)