diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-01-19 10:03:59 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-01-19 10:03:59 +0300 |
commit | 45896dc8681951f6ef3e0fcb7dd38e7e2a435411 (patch) | |
tree | 675c5816cbeea9126a2e40f459d8344880ea18e8 | |
parent | 7708b76c70c61c0c4aca40f75439ca98537972b2 (diff) | |
download | libatomic_ops-45896dc8681951f6ef3e0fcb7dd38e7e2a435411.tar.gz |
Fix turn off optimization in case of configure --enable-gcov
(fix commit 0d0a16d)
* configure.ac [enable_gcov] (CFLAGS): Change sed regular expression
to avoid [] (as they are not properly handled during autogen), and to
also filter out -Os and -Ofast (-O0 is ignored).
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0a723a4..d3eccf8 100644 --- a/configure.ac +++ b/configure.ac @@ -115,7 +115,7 @@ AC_ARG_ENABLE(gcov, AC_HELP_STRING([--enable-gcov], if test "$enable_gcov" = "yes"; then CFLAGS="$CFLAGS --coverage" # Turn off code optimization to get accurate line numbers. - CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'` + CFLAGS=`echo "$CFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'` fi AC_SUBST(PICFLAG) |