summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Xuerui <xen0n@gentoo.org>2023-01-13 15:28:42 +0800
committerSam James <sam@gentoo.org>2023-01-14 19:14:37 +0000
commit7ca22bfaf0bfcc2ae757213baf363f18bdd47f34 (patch)
tree1adbd9818cadabe58f707b2c7da916163a92ddb2 /sys-libs/libxcrypt
parentsys-devel/binutils: fix build with lld-16 (diff)
downloadgentoo-7ca22bfaf0bfcc2ae757213baf363f18bdd47f34.tar.gz
gentoo-7ca22bfaf0bfcc2ae757213baf363f18bdd47f34.tar.bz2
gentoo-7ca22bfaf0bfcc2ae757213baf363f18bdd47f34.zip
sys-libs/libxcrypt: fix build with lld-16
Signed-off-by: WANG Xuerui <xen0n@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/libxcrypt')
-rw-r--r--sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild7
-rw-r--r--sys-libs/libxcrypt/libxcrypt-4.4.33.ebuild7
2 files changed, 14 insertions, 0 deletions
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild
index aadddc16912a..4e9c2fb26ca2 100644
--- a/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild
+++ b/sys-libs/libxcrypt/libxcrypt-4.4.28-r2.ebuild
@@ -129,6 +129,13 @@ src_configure() {
# https://github.com/besser82/libxcrypt/issues/24
filter-lto
+ # 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
+
multibuild_foreach_variant multilib-minimal_src_configure
}
diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.33.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.33.ebuild
index a793f41d2d62..b8e357fe4526 100644
--- a/sys-libs/libxcrypt/libxcrypt-4.4.33.ebuild
+++ b/sys-libs/libxcrypt/libxcrypt-4.4.33.ebuild
@@ -131,6 +131,13 @@ src_configure() {
# https://github.com/besser82/libxcrypt/issues/24
filter-lto
+ # 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
+
multibuild_foreach_variant multilib-minimal_src_configure
}