commit: bacb12921d47957381ff0f26dd57c141f9732771 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Sep 20 20:29:36 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 20 20:30:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bacb1292
app-arch/xz-utils: pass -Wl,--undefined-version conditionally Reported by leio on macOS (though not sure if it's thinking ld64 is lld, or just it's an old version of lld, or what). Bug: https://bugs.gentoo.org/956119 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild b/app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild index 2e4838d8cd65..ce4cf91ed48c 100644 --- a/app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild +++ b/app-arch/xz-utils/xz-utils-5.8.1-r1.ebuild @@ -68,9 +68,7 @@ src_prepare() { src_configure() { use static-libs && lto-guarantee-fat - if tc-ld-is-lld ; then - export LDFLAGS="${LDFLAGS} -Wl,--undefined-version" - fi + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) multilib-minimal_src_configure }
