From f2cd5ec6af19f7ab438c770c3383c3a1741d8e4f Mon Sep 17 00:00:00 2001 From: Jonas Häggqvist Date: Thu, 24 Sep 2009 23:29:18 +0000 Subject: Syntax fixes and logic reversing to fix windows crosscompiling for the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22824 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index 4eb6a295f8..b774d1475b 100755 --- a/tools/configure +++ b/tools/configure @@ -46,13 +46,13 @@ crosswincc () { sdl_cflags="" sdl_libs="" prefixtools i586-mingw32msvc- - if [ $1 = "sdl" -a -z "$sdl"]; then + if [ $1 = "sdl" -a -n "$sdl" ]; then sdl_cflags="`sdl-config --cflags`" sdl_libs="`sdl-config --libs`" fi # add cross-compiler option(s) - GCCOPTS="$GCCOPTS " + $sdl_cflags - LDOPTS="-mconsole" + $sdl_libs + GCCOPTS="$GCCOPTS $sdl_cflags" + LDOPTS="-mconsole $sdl_libs" output="rockboxui.exe" # use this as output binary name crosscompile="yes" -- cgit v1.2.3