]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/0010-Fix-enable-code-coverage-debug-build.patch
update ZFS submodule to debian/0.7.9-2
[zfsonlinux.git] / zfs-patches / 0010-Fix-enable-code-coverage-debug-build.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Brian Behlendorf <behlendorf1@llnl.gov>
3 Date: Fri, 22 Sep 2017 22:16:18 -0700
4 Subject: [PATCH] Fix "--enable-code-coverage" debug build
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 When --enable-code-coverage is provided it should not result
10 in NDEBUG being defined. This is controlled by --enable-debug.
11
12 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
13 Closes #6674
14 (cherry picked from commit 6897ea475fd0c82a74edacf374d4e339f9a9b86b)
15 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
16 ---
17 config/ax_code_coverage.m4 | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/config/ax_code_coverage.m4 b/config/ax_code_coverage.m4
21 index 6484f0332..4417d4444 100644
22 --- a/config/ax_code_coverage.m4
23 +++ b/config/ax_code_coverage.m4
24 @@ -124,7 +124,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
25
26 dnl Build the code coverage flags
27 dnl Define CODE_COVERAGE_LDFLAGS for backwards compatibility
28 - CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
29 + CODE_COVERAGE_CPPFLAGS=""
30 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
31 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
32 CODE_COVERAGE_LIBS="-lgcov"
33 --
34 2.14.2
35