diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-11-23 11:40:06 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-11-27 14:54:01 +0000 |
commit | 3e4513290a0d6ca52d90f18b320173eb555b4c45 (patch) | |
tree | e2d327a0b851cae7c05f4483f0753bbb777d155b /configure.ac | |
parent | 761fbee66393c20fca3d2a6ad381ed9a2bb862bd (diff) |
build-sys: Disable fastpath asserts by default
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 60ecd0bbc..b15b1e4ad 100644 --- a/configure.ac +++ b/configure.ac @@ -157,6 +157,9 @@ AX_APPEND_COMPILE_FLAGS( [-Wall -W -Wextra -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option], [], [-pedantic -Werror]) +# Only enable fastpath asserts when doing a debug build, e.g. from bootstrap.sh. +AS_CASE([" $CFLAGS "], [*" -O0 "*], [], [AX_APPEND_FLAG(["-DFASTPATH"], [CPPFLAGS])]) + #### Linker flags #### |