comparison configure @ 1789:9db7ad441ea6

Minor build tweak
author Chris Cannam
date Tue, 24 Apr 2018 14:14:58 +0100
parents 076aca59192f
children adc8a48f4e4c
comparison
equal deleted inserted replaced
1788:630cb7120480 1789:9db7ad441ea6
4423 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" 4423 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS"
4424 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" 4424 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
4425 4425
4426 if test "x$GCC" = "xyes"; then 4426 if test "x$GCC" = "xyes"; then
4427 CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" 4427 CXXFLAGS_ANY="-std=c++11 -fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
4428 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror -fsanitize=undefined" 4428 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -O2 -Werror"
4429 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math" 4429 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0 -O3 -ffast-math"
4430 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0" 4430 CXXFLAGS_MINIMAL="$CXXFLAGS_ANY -g0 -O0"
4431 LIBS_DEBUG="$LIBS -lubsan" 4431 LIBS_DEBUG="$LIBS -lubsan"
4432 fi 4432 fi
4433 4433
4440 if test "${enable_debug+set}" = set; then : 4440 if test "${enable_debug+set}" = set; then :
4441 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5 4441 enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: enabling debug build" >&5
4442 $as_echo "$as_me: enabling debug build" >&6;} 4442 $as_echo "$as_me: enabling debug build" >&6;}
4443 QMAKE_CONFIG="debug" 4443 QMAKE_CONFIG="debug"
4444 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" 4444 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
4445 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4445 LIBS="$LIBS_DEBUG" 4446 LIBS="$LIBS_DEBUG"
4446 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"
4447 fi 4447 fi
4448 4448
4449 4449
4450 if test x"$USER_CXXFLAGS" != x; then 4450 if test x"$USER_CXXFLAGS" != x; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: The CXXFLAGS environment variable is set to \"$USER_CXXFLAGS\"." >&5