commit:     aa8c75638bbc8e9d35f33478ab3b0e18b83f19dc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 02:44:50 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 02:45:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8c7563

net-libs/webkit-gtk: test if linker supports --no-keep-memory

For example, mold doesn't.

Closes: https://bugs.gentoo.org/831282
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild 
b/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
index ad4b0169d88f..a6cb56d76a50 100644
--- a/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-2.34.3.ebuild
@@ -184,7 +184,7 @@ src_configure() {
        # Try to use less memory, bug #469942 (see Fedora .spec for reference)
        # --no-keep-memory doesn't work on ia64, bug #502492
        if ! use ia64; then
-               append-ldflags "-Wl,--no-keep-memory"
+               append-ldflags $(test-flags-CCLD "-Wl,--no-keep-memory")
        fi
 
        # Ruby situation is a bit complicated. See bug 513888

Reply via email to