diff options
author | wm4 <wm4@nowhere> | 2012-11-20 13:45:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-20 18:00:16 +0100 |
commit | fe97ab6059cecd77e789d58ef7122fc9c3b91700 (patch) | |
tree | 893348a4e7fe874af4a69c2de705f9a78062cfe7 | |
parent | 77a77d886978a87ab2ff8f68da553d4b34b5d48b (diff) | |
download | mpv-fe97ab6059cecd77e789d58ef7122fc9c3b91700.tar.bz2 mpv-fe97ab6059cecd77e789d58ef7122fc9c3b91700.tar.xz |
configure: add --disable-optimization, change --enable-debug semantics
--disable-optimization removes -O2 from CFLAGS.
Now --enable-debug only adds -g to CFLAGS, and doesn't disable
optimization anymore.
As an obscure feature, --enable-optimization=<n> adds -O<n> to CFLAGS.
Also remove stray $def_debug from configure.
-rwxr-xr-x | configure | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -387,6 +387,7 @@ Miscellaneous options: Advanced options: --enable-shm enable shm [autodetect] --enable-debug[=1-3] compile-in debugging information [disable] + --disable-optimization compile without -O2 [enable] Use these options if autodetection fails: --extra-cflags=FLAGS extra CFLAGS @@ -562,15 +563,22 @@ for ac_option do ;; --enable-debug) _debug='-g' - _opt= ;; --enable-debug=*) _debug=$(echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2) - _opt= ;; --disable-debug) _debug= ;; + --enable-optimization) + _opt='-O2' + ;; + --enable-optimization=*) + _opt=$(echo $_echo_n '-O'$_echo_c; echo $ac_option | cut -d '=' -f 2) + ;; + --disable-optimization) + _opt= + ;; --enable-gettext) _gettext=yes ;; --disable-gettext) _gettext=no ;; --enable-cross-compile) _cross_compile=yes ;; @@ -3408,7 +3416,6 @@ $def_priority /* configurable options */ -$def_debug $def_sortsub $def_stream_cache $def_pthread_cache |