Skip to content
Snippets Groups Projects
Commit b9b308f2 authored by Matt Johnston's avatar Matt Johnston
Browse files

Use CXX to link fuzzer, also link with $FUZZLIB

--HG--
branch : fuzz
parent a7bfd792
No related merge requests found
...@@ -231,7 +231,7 @@ svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs)) ...@@ -231,7 +231,7 @@ svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs))
CLANG=clang CLANG=clang
# fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs # 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 fuzzstandalone: fuzz-harness.o fuzzers
# build all the fuzzers. This will require fail to link unless built with # build all the fuzzers. This will require fail to link unless built with
...@@ -240,7 +240,7 @@ fuzzstandalone: fuzz-harness.o fuzzers ...@@ -240,7 +240,7 @@ fuzzstandalone: fuzz-harness.o fuzzers
fuzzers: fuzzer-preauth fuzzers: fuzzer-preauth
fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs) 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. # run this to update hardcoded hostkeys for for fuzzing.
# hostkeys.c is checked in to hg. # hostkeys.c is checked in to hg.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment