aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoost Peters2009-11-25 00:22:38 +0000
committerJoost Peters2009-11-25 00:22:38 +0000
commita04f2e4affe57d138479c3330a2ea5e677b9038e (patch)
treea3037a016cd27b5703f5b711231a2d324b3ee74c /configure
parent3fda71b10c6a4c0bb6949c7cc032bd4b4d4a5323 (diff)
downloadscummvm-rg350-a04f2e4affe57d138479c3330a2ea5e677b9038e.tar.gz
scummvm-rg350-a04f2e4affe57d138479c3330a2ea5e677b9038e.tar.bz2
scummvm-rg350-a04f2e4affe57d138479c3330a2ea5e677b9038e.zip
apply patch #2903175: "PSP: compile cleanup/fix for gprof and Windows"
svn-id: r46134
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 49fc71e026..68b39b3340 100755
--- a/configure
+++ b/configure
@@ -900,6 +900,12 @@ psp)
_host_os=psp
_host_cpu=mipsallegrexel
_host_alias=psp
+ if test -z "$PSPDEV"; then
+ PSPDEV=$(psp-config --pspdev-path)
+ fi
+ if test -d "$PSPDEV/psp/lib"; then
+ LDFLAGS="$LDFLAGS -L$PSPDEV/psp/lib"
+ fi
LDFLAGS="$LDFLAGS -L$PSPDEV/psp/sdk/lib -specs=$_srcdir/backends/platform/psp/psp.spec"
;;
ps2)
@@ -2307,6 +2313,12 @@ case $_backend in
DEFINES="$DEFINES -D__PSP__ -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DDISABLE_DOSBOX_OPL"
INCLUDES="$INCLUDES -I$PSPDEV/psp/include/SDL"
LIBS="$LIBS -lpng -lSDL"
+ SDLLIBS=$($PSPDEV/psp/bin/sdl-config --libs)
+
+ if `echo "$SDLLIBS" | grep ".*-lGL.*" 1>/dev/null 2>&1`
+ then
+ LIBS="$LIBS -lGL"
+ fi
;;
ps2)
# TODO ps2