summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2006-08-28 11:46:54 +0000
committerJonas Häggqvist <rasher@rasher.dk>2006-08-28 11:46:54 +0000
commit04f07febd510513adb303be0346eeb2fec68c542 (patch)
tree9c81e392347411096264769f805703ec3a04e0d5 /tools
parentd9199d10b1ec3d93002eb0f863b15edbe58d5892 (diff)
downloadrockbox-04f07febd510513adb303be0346eeb2fec68c542.tar.gz
rockbox-04f07febd510513adb303be0346eeb2fec68c542.zip
Enable crosscompiling of the SDL simulator if a crosscompiled SDL is available (and its sdl-config is in $PATH). See FS#5858 for details.
The binaries are quite large, which means that many codecs (and possibly plugins as well) won't work reliably. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10784 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 8598497912..9dfa0fdd3b 100755
--- a/tools/configure
+++ b/tools/configure
@@ -128,6 +128,10 @@ simcc () {
LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
crosswincc # setup cross-compiler
elif [ "$simver" = "sdl" ]; then
+ if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
+ # Enable crosscompiling if sdl-config is from Windows SDL
+ crosswincc
+ fi
GCCOPTS="$GCCOPTS `sdl-config --cflags`"
LDOPTS="`sdl-config --libs`"
checksoundcard