aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 48b97b2ee6..d0ec20b03f 100755
--- a/configure
+++ b/configure
@@ -177,6 +177,8 @@ EOF
fi
done # for parm in ...
+DEBFLAGS="-g"
+
for ac_option in $@; do
case "$ac_option" in
--disable-scumm) _build_scumm=no ;;
@@ -212,8 +214,11 @@ for ac_option in $@; do
--backend=*)
_backend=`echo $ac_option | cut -d '=' -f 2`
;;
- --enable-debug)
- CXXFLAGS="$CXXFLAGS -g"
+ --disable-debug)
+ DEBFLAGS=""
+ ;;
+ --enable-release)
+ DEBFLAGS=""
;;
*)
echo "error: unrecognised option: $ac_option
@@ -223,6 +228,7 @@ Try \`$0 --help' for more information." >&2
esac;
done;
+CXXFLAGS="$CXXFLAGS $DEBFLAGS"
#
# Determine the C++ compiler
#