Commit d07425e6709362431f36b13029d0cf7ca3437aca

Steffen Jaeckel 2016-01-13T23:23:19

'make coverage' create the same results for regular and shared makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makefile b/makefile
index 8da804e..dbf085b 100644
--- a/makefile
+++ b/makefile
@@ -19,6 +19,8 @@ ifndef LIBNAME
    LIBNAME=libtommath.a
 endif
 
+coverage: LIBNAME:=-Wl,--whole-archive $(LIBNAME)  -Wl,--no-whole-archive
+
 include makefile.include
 
 LCOV_ARGS=--directory .