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:
parent
86df983eee
commit
615c638c7d
1 changed files with 8 additions and 3 deletions
11
tools/configure
vendored
11
tools/configure
vendored
|
|
@ -339,13 +339,18 @@ simcc () {
|
|||
echo "don't have SDL (properly) installed. Please correct and"
|
||||
echo "re-run configure!"
|
||||
exit 2
|
||||
else
|
||||
else
|
||||
# generic sdl-config checker
|
||||
GCCOPTS="$GCCOPTS `$sdl --cflags`"
|
||||
LDOPTS="$LDOPTS `$sdl --static-libs`"
|
||||
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
|
||||
|
||||
|
||||
|
||||
GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
|
||||
# x86_64 supports MMX by default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue