aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-31 07:14:25 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:07 +0200
commit8f98d5a8f8c90d5cf771c7e06c3e188be74ffce3 (patch)
tree204b67d2e4e84750dedc0713a759d3aaec927f99 /Makefile
parentb83a2c1a00f6c9e45d6803e2b54dc3a82ffa49fc (diff)
downloadAFLplusplus-8f98d5a8f8c90d5cf771c7e06c3e188be74ffce3.tar.gz
fix unit test compilation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b45cf9d3..aaeb136c 100644
--- a/Makefile
+++ b/Makefile
@@ -316,7 +316,7 @@ test/unittests/unit_maybe_alloc.o : $(COMM_HDR) include/alloc-inl.h test/unittes
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c test/unittests/unit_maybe_alloc.c -o test/unittests/unit_maybe_alloc.o
unit_maybe_alloc: test/unittests/unit_maybe_alloc.o
- $(CC) $(CFLAGS) -lcmocka -Wl,--wrap=exit -Wl,--wrap=printf $(LDFLAGS) test/unittests/unit_maybe_alloc.o -o test/unittests/unit_maybe_alloc
+ $(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf $(LDFLAGS) test/unittests/unit_maybe_alloc.o -o test/unittests/unit_maybe_alloc -ldl -lcmocka
./test/unittests/unit_maybe_alloc
unit: unit_maybe_alloc