From 961f8a0f56b13e4c03ad22367db3320592a2b5cc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 4 Jul 2024 09:45:06 -0400 Subject: [PATCH] configure: if we can't link SDL statically, drop -static from the cmdline Fixes building windows simulator builds on Fedora systems Change-Id: I1e17e8f2f395a0298fc9d3d7e03c621d23208221 --- tools/configure | 1 + 1 file changed, 1 insertion(+) 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}"