From d3ce31e0215d7d6fdf7bdecac1bad499a0e0167d Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 16 Feb 2021 23:32:15 +0100 Subject: games/scummvm: Avoid breakage with the gold linker on i*86. Signed-off-by: Matteo Bernardini --- games/scummvm/scummvm.SlackBuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/games/scummvm/scummvm.SlackBuild b/games/scummvm/scummvm.SlackBuild index c0a8a400f75d8..45d0bc1a4c052 100644 --- a/games/scummvm/scummvm.SlackBuild +++ b/games/scummvm/scummvm.SlackBuild @@ -76,9 +76,12 @@ find -L . \ # git commit 68758a87. patch -p1 < $CWD/fix-fluidsynth2-build.diff +# avoid linking breakage on i?86 +if [[ $ARCH == i?86 ]]; then linker=bfd; else linker=gold; fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -LDFLAGS="-fuse-ld=gold" \ +LDFLAGS="-fuse-ld=$linker" \ ./configure \ --prefix=/usr \ --bindir=/usr/games \ -- cgit v1.2.3