diff options
author | D G Turner | 2013-07-10 05:00:25 +0100 |
---|---|---|
committer | D G Turner | 2013-07-10 05:00:25 +0100 |
commit | e6259afc2345e82bbf1f019301b13137b67ffece (patch) | |
tree | 17d07601d5c691aab16378461c92dc9a4796a43c /configure | |
parent | 685c42b39aebc74be06823c2d5ef1360ae525c9c (diff) | |
download | scummvm-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-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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" |