Commit 6d602254bd52c4200c53b069367e85dad0571e76

Thomas de Grivel 2022-12-27T00:27:26

gcov

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/config.subr b/config.subr
index e605437..2b17a35 100644
--- a/config.subr
+++ b/config.subr
@@ -134,10 +134,10 @@ fi
 echo "CC = $CC" >> ${CONFIG_MK}
 
 if [ "x$GCOV" = "x" ]; then
-    if which gcov 2>/dev/null; then
+    if which gcov >/dev/null 2>&1; then
 	GCOV=gcov
         HAVE_GCOV=true
-    elif which egcov 2>/dev/null; then
+    elif which egcov >/dev/null 2>&1; then
 	GCOV=egcov
         HAVE_GCOV=true
     fi