public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-util/mangohud/
Date: Mon, 10 Mar 2025 11:04:36 +0000 (UTC)	[thread overview]
Message-ID: <1741534680.33dc46322744f08512be1382d48c4ac9a87285de.davidroman@gentoo> (raw)

commit:     33dc46322744f08512be1382d48c4ac9a87285de
Author:     Kostadin Shishmanov <kostadinshishmanov <AT> protonmail <DOT> com>
AuthorDate: Sun Mar  9 15:31:51 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Mar  9 15:38:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33dc4632

games-util/mangohud: only add linker flag if lld is used

Currently, the -Wl,--undefined-version linker flag gets added
no matter what linker is used. Make it so it's only appended when
lld is used, considering that's the only linker which has the symbol
issue.

Signed-off-by: Kostadin Shishmanov <kostadinshishmanov <AT> protonmail.com>

 games-util/mangohud/mangohud-0.8.1.ebuild | 6 ++++--
 games-util/mangohud/mangohud-9999.ebuild  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/games-util/mangohud/mangohud-0.8.1.ebuild b/games-util/mangohud/mangohud-0.8.1.ebuild
index c191316b8..b9aa50af0 100644
--- a/games-util/mangohud/mangohud-0.8.1.ebuild
+++ b/games-util/mangohud/mangohud-0.8.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{11..13} )
 
-inherit flag-o-matic python-single-r1 meson-multilib
+inherit flag-o-matic python-single-r1 meson-multilib toolchain-funcs
 
 MY_PV=$(ver_cut 1-3)
 [[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
@@ -121,7 +121,9 @@ src_prepare() {
 multilib_src_configure() {
 	# workaround for lld
 	# https://github.com/flightlessmango/MangoHud/issues/1240
-	append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+	if tc-ld-is-lld; then
+		append-ldflags -Wl,--undefined-version
+	fi
 
 	local emesonargs=(
 		-Dappend_libdir_mangohud=false

diff --git a/games-util/mangohud/mangohud-9999.ebuild b/games-util/mangohud/mangohud-9999.ebuild
index e10f4d2e2..d2c3380ea 100644
--- a/games-util/mangohud/mangohud-9999.ebuild
+++ b/games-util/mangohud/mangohud-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{11..13} )
 
-inherit flag-o-matic python-single-r1 meson-multilib
+inherit flag-o-matic python-single-r1 meson-multilib toolchain-funcs
 
 MY_PV=$(ver_cut 1-3)
 [[ -n "$(ver_cut 4)" ]] && MY_PV_REV="-$(ver_cut 4)"
@@ -120,7 +120,9 @@ src_prepare() {
 multilib_src_configure() {
 	# workaround for lld
 	# https://github.com/flightlessmango/MangoHud/issues/1240
-	append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
+	if tc-ld-is-lld; then
+		append-ldflags -Wl,--undefined-version
+	fi
 
 	local emesonargs=(
 		-Dappend_libdir_mangohud=false


             reply	other threads:[~2025-03-10 11:04 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-10 11:04 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-11 11:13 [gentoo-commits] repo/proj/guru:master commit in: games-util/mangohud/ Haelwenn Monnier
2025-03-10 11:04 David Roman
2025-02-17  9:49 David Roman
2025-02-17  9:49 David Roman
2024-12-28 20:08 Florian Schmaus
2024-12-28 20:08 Florian Schmaus
2024-12-27 15:34 Julien Roy
2024-12-26 15:36 Julien Roy
2024-12-12 13:06 David Roman
2024-12-10 11:32 David Roman
2024-09-18 23:46 Haelwenn Monnier
2024-05-23 10:36 David Roman
2024-05-12  9:38 Viorel Munteanu
2024-05-12  9:38 Viorel Munteanu
2024-05-10  0:33 Haelwenn Monnier
2024-04-13 17:15 Julien Roy
2024-04-13 16:14 Julien Roy
2024-02-08  9:29 David Roman
2024-02-08  9:29 David Roman
2024-02-07 10:10 David Roman
2024-02-07 10:10 David Roman
2023-08-23 17:33 David Roman
2023-08-21 12:43 Haelwenn Monnier
2023-08-21 12:43 Haelwenn Monnier
2022-09-26 10:05 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-09-26 10:05 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-09-08  1:46 Ronny Gutbrod
2022-09-06  1:06 Ronny Gutbrod
2022-07-23 17:36 Haelwenn Monnier
2022-05-12  9:14 Andrew Ammerlaan
2022-05-12  9:14 Andrew Ammerlaan
2022-05-10  7:49 Florian Schmaus
2022-05-09 18:44 Andrew Ammerlaan
2022-05-05  4:07 Haelwenn Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741534680.33dc46322744f08512be1382d48c4ac9a87285de.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox