$OpenBSD: patch-test_Makefile,v 1.1 2020/05/27 11:38:18 bentley Exp $

Index: test/Makefile
--- test/Makefile.orig
+++ test/Makefile
@@ -165,7 +165,7 @@ TESTLDFLAGS := -L$(TESTROOT) \
 
 # malloc faliure injection generator
 $(TESTROOT)/libmalloc_fig.so:test/malloc_fig.c
-	$(CC) -shared -fPIC -I. -std=c99 $(TEST_WARNFLAGS) $^ -ldl -o $@
+	$(CC) -shared -fPIC -I. -std=c99 $(TEST_WARNFLAGS) $^ -o $@
 
 # Source files for all tests being compiled
 TESTSOURCES :=
