summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-07-04 09:45:06 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-07-04 09:48:02 -0400
commit961f8a0f56b13e4c03ad22367db3320592a2b5cc (patch)
treeda0bbfcc8931a0c43e3bc72aff0b7db5368d728e
parente2fb4ecd5c6395ec6bf6524cc4a54ad878a15b13 (diff)
downloadrockbox-961f8a0f56.tar.gz
rockbox-961f8a0f56.zip
configure: if we can't link SDL statically, drop -static from the cmdline
Fixes building windows simulator builds on Fedora systems Change-Id: I1e17e8f2f395a0298fc9d3d7e03c621d23208221
-rwxr-xr-xtools/configure1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 35f4b6d107..b1f2308a3e 100755
--- a/tools/configure
+++ b/tools/configure
@@ -435,6 +435,7 @@ simcc () {
else
echo "Your sdl-config does not know about static libs, falling back to shared library"
sdlldopts=$($sdl --libs)
+ LDOPTS=`echo $LDOPTS | sed -e s/ -static//`
fi
GCCOPTS="$GCCOPTS ${sdlccopts}"
LDOPTS="$LDOPTS ${sdlldopts}"