aboutsummaryrefslogtreecommitdiff
path: root/games/scummvm/scummvm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/scummvm/scummvm.SlackBuild')
-rw-r--r--games/scummvm/scummvm.SlackBuild5
1 files changed, 4 insertions, 1 deletions
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 \