about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-01 16:18:44 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commit29ff59cc8adc5f1d87508171a87348f92ba4b5cb (patch)
tree607ff2dd6e284f19d1e53aa3d697ae4f4f4be5b2
parentdab429521b8b3db3671173da33a1bca0a2c1ae4c (diff)
downloadafl++-29ff59cc8adc5f1d87508171a87348f92ba4b5cb.tar.gz
fixing unit tests (again) remove CFLAGS_FLTO, put LDFLAGS near the end
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ab94beff..23fcaeca 100644
--- a/Makefile
+++ b/Makefile
@@ -323,10 +323,10 @@ unit_maybe_alloc: test/unittests/unit_maybe_alloc.o
 	./test/unittests/unit_maybe_alloc
 
 test/unittests/unit_list.o : $(COMM_HDR) include/list.h test/unittests/unit_list.c $(AFL_FUZZ_FILES)
-	$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c test/unittests/unit_list.c -o test/unittests/unit_list.o
+	$(CC) $(CFLAGS) -c test/unittests/unit_list.c -o test/unittests/unit_list.o
 
 unit_list: test/unittests/unit_list.o
-	$(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf $(LDFLAGS) test/unittests/unit_list.o -o test/unittests/unit_list -ldl -lcmocka
+	$(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_list.o -o test/unittests/unit_list  $(LDFLAGS) -lcmocka
 	./test/unittests/unit_list
 
 test/unittests/preallocable.o : $(COMM_HDR) include/afl-prealloc.h test/unittests/preallocable.c $(AFL_FUZZ_FILES)