aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-04-20 19:00:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2014-04-20 19:00:48 +0200
commit6a6d7d8f10fb72b195cef814e473917d984023b4 (patch)
treef3ac8daae011efa0e60bc4464b6228e445fbe321
parent3e16fb823e4921ef85eac7730794a2c3de184c1a (diff)
Fix building of testsuite.
-rw-r--r--tests/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 12ba8497..d77fb1d1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,9 +3,10 @@ ifdef _SRCDIR_
_SRCDIR_ := $(_SRCDIR_)tests/
endif
-LFLAGS +=-lcheck
+CFLAGS += $(shell pkg-config --cflags check)
+LFLAGS += $(shell pkg-config --libs check)
-all: check
+all: check
./check $(CHECKFLAGS)
clean: