aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-01 15:39:36 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commit378f4dd46d5057b17e6b9386e3ec07163277b855 (patch)
tree5372a3b18d9acb38a01892a756b3e1960adc6701 /Makefile
parent2455f081fcdfb2cd648caa96d00b637fc8a00eb4 (diff)
downloadAFLplusplus-378f4dd46d5057b17e6b9386e3ec07163277b855.tar.gz
fix make target unit test (tested on Ubuntu 16.04)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61ce63bc..11db22e6 100644
--- a/Makefile
+++ b/Makefile
@@ -313,10 +313,10 @@ document: $(COMM_HDR) include/afl-fuzz.h $(AFL_FUZZ_FILES) src/afl-common.o src/
$(CC) -D_AFL_DOCUMENT_MUTATIONS $(CFLAGS) $(CFLAGS_FLTO) $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o afl-fuzz-document $(PYFLAGS) $(LDFLAGS)
test/unittests/unit_maybe_alloc.o : $(COMM_HDR) include/alloc-inl.h test/unittests/unit_maybe_alloc.c $(AFL_FUZZ_FILES)
- $(CC) $(CFLAGS) $(CFLAGS_FLTO) -c test/unittests/unit_maybe_alloc.c -o test/unittests/unit_maybe_alloc.o
+ $(CC) $(CFLAGS) -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) -Wl,--wrap=exit -Wl,--wrap=printf $(LDFLAGS) test/unittests/unit_maybe_alloc.o -o test/unittests/unit_maybe_alloc -ldl -lcmocka
+ $(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_maybe_alloc.o -o test/unittests/unit_maybe_alloc $(LDFLAGS) -lcmocka
./test/unittests/unit_maybe_alloc
unit_preallocable: test/unittests/unit_preallocable.o