diff mbox series

libtracefs: Have cunit test in Makefile use /dev/null in the output

Message ID 20201201141547.1fc05a1a@gandalf.local.home (mailing list archive)
State Accepted
Headers show
Series libtracefs: Have cunit test in Makefile use /dev/null in the output | expand

Commit Message

Steven Rostedt Dec. 1, 2020, 7:15 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

The test command in the Makefile to see if cunit is installed use $(CC)
without -o /dev/null, leaving an "a.out" in directory.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 3158698..c5b13ca 100644
--- a/Makefile
+++ b/Makefile
@@ -150,7 +150,7 @@  CFLAGS ?= -g -Wall
 CPPFLAGS ?=
 LDFLAGS ?=
 
-CUNIT_INSTALLED := $(shell if (printf "$(pound)include <CUnit/Basic.h>\n void main(){CU_initialize_registry();}" | $(CC) -x c - -lcunit >/dev/null 2>&1) ; then echo 1; else echo 0 ; fi)
+CUNIT_INSTALLED := $(shell if (printf "$(pound)include <CUnit/Basic.h>\n void main(){CU_initialize_registry();}" | $(CC) -x c - -lcunit -o /dev/null >/dev/null 2>&1) ; then echo 1; else echo 0 ; fi)
 export CUNIT_INSTALLED
 
 export CFLAGS