commit: 5957215571383490d2799238d2ce7e50349b1371
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 14 06:32:49 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 14 19:14:38 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59572155
dev-libs/libgcrypt: fix build with lld-16
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild | 9 ++++++++-
dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild | 9 ++++++++-
dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild | 9 ++++++++-
3 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild
b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild
index 5614f817ecb3..fdaaf606e1e9 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -105,6 +105,13 @@ multilib_src_configure() {
append-flags -fno-tree-loop-vectorize
fi
+ # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
+ # https://github.com/gentoo/gentoo/pull/28355
+ # mold needs this too but right now tc-ld-is-mold is also not available
+ if tc-ld-is-lld; then
+ append-ldflags -Wl,--undefined-version
+ fi
+
local myeconfargs=(
CC_FOR_BUILD="$(tc-getBUILD_CC)"
diff --git a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
b/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
index aaa53b979288..38cdf50ad91f 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.10.1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -106,6 +106,13 @@ multilib_src_configure() {
append-flags -fno-tree-loop-vectorize
fi
+ # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
+ # https://github.com/gentoo/gentoo/pull/28355
+ # mold needs this too but right now tc-ld-is-mold is also not available
+ if tc-ld-is-lld; then
+ append-ldflags -Wl,--undefined-version
+ fi
+
local myeconfargs=(
CC_FOR_BUILD="$(tc-getBUILD_CC)"
diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild
b/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild
index c7a2a6fe71fc..d164dfc4b237 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.9.4-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -78,6 +78,13 @@ multilib_src_configure() {
append-flags -fno-tree-loop-vectorize
fi
+ # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
+ # https://github.com/gentoo/gentoo/pull/28355
+ # mold needs this too but right now tc-ld-is-mold is also not available
+ if tc-ld-is-lld; then
+ append-ldflags -Wl,--undefined-version
+ fi
+
local myeconfargs=(
CC_FOR_BUILD="$(tc-getBUILD_CC)"