aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-10-14 12:56:14 +0000
committerMax Horn2009-10-14 12:56:14 +0000
commita2c7ec6d85c23a1cbf7da75f146a926677e5321a (patch)
tree9a2b6814a027de8f199ff3a05a30818992660994
parent2284932e359a48277821e95eeedf2da61eebe7f1 (diff)
downloadscummvm-rg350-a2c7ec6d85c23a1cbf7da75f146a926677e5321a.tar.gz
scummvm-rg350-a2c7ec6d85c23a1cbf7da75f146a926677e5321a.tar.bz2
scummvm-rg350-a2c7ec6d85c23a1cbf7da75f146a926677e5321a.zip
Tweak configure for PS2 to disable debug mode by default and enable relase mode by default
svn-id: r45076
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index 0c9c2fb549..9dcfad0984 100755
--- a/configure
+++ b/configure
@@ -902,6 +902,16 @@ ps2)
_host_os=ps2
_host_cpu=mips64r5900el
_host_alias=ee
+ if test "$_debug_build" = auto; then
+ # Disable debug mode by default. The resulting binaries are far too big in general,
+ # and one has to disable multiple engines to make it usable.
+ _debug_build=no
+ fi
+
+ if test "$_release_build" = auto; then
+ # Enable release build by default.
+ _release_build=yes
+ fi
;;
*)
if test -n "$_host"; then
@@ -1538,6 +1548,17 @@ if test -n "$_host"; then
add_line_to_config_mk 'CC = ee-gcc'
# HACK to fix linking for now. It seems ee-g++ does not handle linking correctly.
LD=ee-gcc
+
+ if test "$_debug_build" = yes; then
+ # TODO: Setup debug build properly
+ DEFINES="$DEFINES -D__PS2_DEBUG__"
+ #INCLUDES="$INCLUDES -I$(PS2GDB)/ee"
+ #LDFLAGS="$LDFLAGS -L$(PS2GDB)/lib"
+ LDFLAGS="$LDFLAGS -lps2gdbStub -lps2ip -ldebug"
+ else
+ # If not building for debug mode, strip binaries.
+ CXXFLAGS="$CXXFLAGS -s"
+ fi
;;
*)
echo "Continuing with auto-detected values ... if you have problems, please add your target to configure."