diff options
author | Joost Peters | 2009-11-25 00:22:38 +0000 |
---|---|---|
committer | Joost Peters | 2009-11-25 00:22:38 +0000 |
commit | a04f2e4affe57d138479c3330a2ea5e677b9038e (patch) | |
tree | a3037a016cd27b5703f5b711231a2d324b3ee74c /configure | |
parent | 3fda71b10c6a4c0bb6949c7cc032bd4b4d4a5323 (diff) | |
download | scummvm-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-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |