# HG changeset patch # User Matt Johnston # Date 1494690361 -28800 # Node ID 68e0e396af804f66c1d1fc09ee488b5fd9dbaf88 # Parent 2722f2347a482c632c14c38718ab56d9e3cac229 Use CXX to link fuzzer, also link with $FUZZLIB diff -r 2722f2347a48 -r 68e0e396af80 Makefile.in --- 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 @@ CLANG=clang # 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) $@.o $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) @CRYPTLIB@ + $(CXX) $(CXXFLAGS) $@.o $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@ # run this to update hardcoded hostkeys for for fuzzing. # hostkeys.c is checked in to hg.