summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorVítězslav Kříž <vitezslav.kriz@nic.cz>2016-02-17 13:47:59 +0100
committerVítězslav Kříž <vitezslav.kriz@nic.cz>2016-02-17 14:09:56 +0100
commit83b6711c6580c56b03c618a1980c6a38c3214051 (patch)
tree8bc2389ea8ff6914fd276e613b665818db10cd0f /m4
parentcode coverage macro works for gcc and clang (diff)
downloadknot-83b6711c6580c56b03c618a1980c6a38c3214051.tar.xz
knot-83b6711c6580c56b03c618a1980c6a38c3214051.zip
code coverage changes CFLAGS directly
Diffstat (limited to 'm4')
-rw-r--r--m4/code-coverage.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/m4/code-coverage.m4 b/m4/code-coverage.m4
index ae6c5a2c6..c0b986a2b 100644
--- a/m4/code-coverage.m4
+++ b/m4/code-coverage.m4
@@ -39,10 +39,7 @@ AC_DEFUN([AX_CODE_COVERAGE], [
changequote([,])
dnl Add the coverage flags (clang, gcc)
- CODE_COVERAGE_CFLAGS="--coverage"
- CODE_COVERAGE_LDFLAGS="--coverage"
-
- AC_SUBST([CODE_COVERAGE_CFLAGS])
- AC_SUBST([CODE_COVERAGE_LDFLAGS])
+ CFLAGS="$CFLAGS --coverage"
+ LDFLAGS="$LDFLAGS --coverage"
])
]) # AC_CODE_COVERAGE