aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-02-16 23:32:15 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:58:01 -0500
commitd3ce31e0215d7d6fdf7bdecac1bad499a0e0167d (patch)
treeca9d44041ee33489a78edb80ba9332f88c5d08d5 /games
parent8daa854ffebab5d56c554730c5f98bc72b7015c9 (diff)
games/scummvm: Avoid breakage with the gold linker on i*86.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games')
-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 \