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 |
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