aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorD G Turner2013-07-10 05:00:25 +0100
committerD G Turner2013-07-10 05:00:25 +0100
commite6259afc2345e82bbf1f019301b13137b67ffece (patch)
tree17d07601d5c691aab16378461c92dc9a4796a43c /configure
parent685c42b39aebc74be06823c2d5ef1360ae525c9c (diff)
downloadscummvm-rg350-e6259afc2345e82bbf1f019301b13137b67ffece.tar.gz
scummvm-rg350-e6259afc2345e82bbf1f019301b13137b67ffece.tar.bz2
scummvm-rg350-e6259afc2345e82bbf1f019301b13137b67ffece.zip
DC: Only enable serial debug output when --enable-debug is passed.
After this change, release builds will still have serial debug disabled, but debug builds will now not provide this unless --enable-debug is passed explicitly. This could have been another option or environment variable, but other embedded ports do similar things with _debug_build and this looks like the cleanest way to deal with this.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 9fa698a2ca..bf991491b0 100755
--- a/configure
+++ b/configure
@@ -2374,7 +2374,8 @@ if test -n "$_host"; then
DEFINES="$DEFINES -DDISABLE_DEFAULT_SAVEFILEMANAGER"
DEFINES="$DEFINES -DDISABLE_TEXT_CONSOLE"
DEFINES="$DEFINES -DDISABLE_COMMAND_LINE"
- if test "$_release_build" = yes; then
+ # Enable serial debugging output only when --enable-debug is passed
+ if test "$_debug_build" != yes; then
DEFINES="$DEFINES -DNOSERIAL"
fi
_optimization_level=-O3
@@ -2706,7 +2707,8 @@ case $_backend in
LDFLAGS="$LDFLAGS -nostartfiles"
LDFLAGS="$LDFLAGS "'$(ronindir)/lib/crt0.o'
LDFLAGS="$LDFLAGS "'-L$(ronindir)/lib'
- if test "$_release_build" = yes; then
+ # Enable serial debugging output only when --enable-debug is passed
+ if test "$_debug_build" != yes; then
LIBS="$LIBS -lronin-noserial -lm"
else
LIBS="$LIBS -lronin -lm"