Link against subunit for testing.

This fixes the problems in Debian stretch+.
This commit is contained in:
Patrick J Cherry
2016-10-13 16:39:20 +01:00
parent b4cb2d9240
commit cace8123f4

View File

@@ -94,7 +94,7 @@ CHECK_OBJ := $(CHECK_SRC:tests/unit/%.c=build/%.o)
CHECK_BINS := $(CHECK_SRC:tests/unit/%.c=build/%)
build/check_%: build/check_%.o
$(LINK) $^ -o $@ $(COMMON_OBJ) $(SERVER_OBJ) -lcheck
$(LINK) $^ -o $@ $(COMMON_OBJ) $(SERVER_OBJ) -lcheck -lsubunit
check_objs: $(CHECK_OBJ)