From 04f07febd510513adb303be0346eeb2fec68c542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=A4ggqvist?= Date: Mon, 28 Aug 2006 11:46:54 +0000 Subject: [PATCH] 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 --- tools/configure | 4 ++++ 1 file changed, 4 insertions(+) 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