games-arcade/gav: respect LD

Much easier to just assume we're dealing with the
compiler interface.

Closes: https://bugs.gentoo.org/779976
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-04 12:07:26 +00:00
parent 09e43a6d39
commit 38041cc393

View File

@@ -44,12 +44,19 @@ src_prepare() {
# Now, move the additional themes in the proper directory
mv ../{fabeach,florindo,inverted,naive,unnamed,yisus,yisus2} themes || die
# no reason to have executable bit set on themes
# No reason to have executable bit set on themes
find themes -type f -exec chmod a-x '{}' \; || die
# Respect LD, bug #779976
sed -i -e 's/LD = ld/LD ?= ld/' CommonHeader || die
sed -i -e 's/$(LD)/& $(LDFLAGS)/' */Makefile || die
}
src_configure() {
tc-export CXX
# Nobody _really_ sets LD. Tell the compiler what to do instead.
export LD="${CXX}"
}
src_compile() {