1
0
Fork 0
forked from len0rd/rockbox

Fix broken simulator build with weird sdl-config

* --static-libs isn't supported on some (possibly newer) SDL installs, falls back to --libs if this is the case

Patch mostly by Amaury Pouly.

Change-Id: I6dd2f4847f2a2d1de7b2d287c0af6651cec461ff
This commit is contained in:
Franklin Wei 2016-05-29 18:47:10 -04:00
parent 86df983eee
commit 615c638c7d

5
tools/configure vendored
View file

@ -342,7 +342,12 @@ simcc () {
else
# generic sdl-config checker
GCCOPTS="$GCCOPTS `$sdl --cflags`"
if sdl-config --static-libs > /dev/null 2>&1 ; then
LDOPTS="$LDOPTS `$sdl --static-libs`"
else
echo "Your sdl-config does not know about static libs, falling back to shared library"
LDOPTS="$LDOPTS `$sdl --libs`"
fi
fi
fi