diff Makefile.in @ 1351:68e0e396af80 fuzz

Use CXX to link fuzzer, also link with $FUZZLIB
author Matt Johnston <matt@ucc.asn.au>
date Sat, 13 May 2017 23:46:01 +0800
parents 5c2899e35b63
children 66c1cfd5e100
line wrap: on
line diff
--- a/Makefile.in	Sat May 13 23:45:51 2017 +0800
+++ b/Makefile.in	Sat May 13 23:46:01 2017 +0800
@@ -231,7 +231,7 @@
 # fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs
-fuzzstandalone: LIBS+=fuzz-harness.o
+fuzzstandalone: FUZZLIB=fuzz-harness.o
 fuzzstandalone: fuzz-harness.o fuzzers
 # build all the fuzzers. This will require fail to link unless built with
@@ -240,7 +240,7 @@
 fuzzers: fuzzer-preauth
 fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs)
-	$(CC) [email protected] $(LDFLAGS) $(svrfuzzobjs) -o [email protected]$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) @[email protected]
+	$(CXX) $(CXXFLAGS) [email protected] $(LDFLAGS) $(svrfuzzobjs) -o [email protected]$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @[email protected]
 # run this to update hardcoded hostkeys for for fuzzing. 
 # hostkeys.c is checked in to hg.