]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix "--enable-code-coverage" debug build
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 23 Sep 2017 05:16:18 +0000 (22:16 -0700)
committerGitHub <noreply@github.com>
Sat, 23 Sep 2017 05:16:18 +0000 (22:16 -0700)
When --enable-code-coverage is provided it should not result
in NDEBUG being defined.  This is controlled by --enable-debug.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6674

config/ax_code_coverage.m4

index 6484f03324352f6e3fb8d3cb6217c15aae228736..4417d4444a9628c735629a3498d441d2b563ec45 100644 (file)
@@ -124,7 +124,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
 
                dnl Build the code coverage flags
                dnl Define CODE_COVERAGE_LDFLAGS for backwards compatibility
-               CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
+               CODE_COVERAGE_CPPFLAGS=""
                CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
                CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
                CODE_COVERAGE_LIBS="-lgcov"