commit:     ae2a60cc6d183db41efaa9361672472fb005b38d
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Mon Jan 26 21:39:29 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 03:04:29 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae2a60cc

media-sound/zynaddsubfx: pass LD=$(tc-getCC) to zyn-fusion build

At some point during the building of zyn-fusion, it attempts to use
${LD} where it should be using ${CC} to link. Obviously, this causes a
build failure. As a fix, pass LD=$(tc-getCC) to the zyn-fusion build. I
would attempt to properly fix this with a patch, but the bug seems to
originate from a makefile generated by their inexplicable bespoke
ruby-based build system, which I would rather not touch with a 10 foot
pole.

Closes: https://bugs.gentoo.org/935542
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Part-of: https://github.com/gentoo/gentoo/pull/45535
Closes: https://github.com/gentoo/gentoo/pull/45535
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/zynaddsubfx/zynaddsubfx-3.0.6-r6.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-sound/zynaddsubfx/zynaddsubfx-3.0.6-r6.ebuild 
b/media-sound/zynaddsubfx/zynaddsubfx-3.0.6-r6.ebuild
index 21d8be1c3eef..658f0da2aa09 100644
--- a/media-sound/zynaddsubfx/zynaddsubfx-3.0.6-r6.ebuild
+++ b/media-sound/zynaddsubfx/zynaddsubfx-3.0.6-r6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake flag-o-matic prefix
+inherit cmake flag-o-matic prefix toolchain-funcs
 
 DESCRIPTION="Software synthesizer capable of making a countless number of 
instruments"
 HOMEPAGE="https://zynaddsubfx.sourceforge.net/";
@@ -104,7 +104,9 @@ src_configure() {
 src_compile() {
        cmake_src_compile
        use doc && cmake_src_compile doc
-       emake -C ../zyn-fusion-ui-src-${PV}
+       emake \
+               LD="$(tc-getCC)" \
+               -C ../zyn-fusion-ui-src-${PV}
 }
 
 src_install() {

Reply via email to