libevent: fix build (#7149)

This commit is contained in:
DavidKorczynski 2022-01-18 14:21:44 +00:00 committed by GitHub
parent abae88cc07
commit 1a55338772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -16,17 +16,17 @@
################################################################################ ################################################################################
# build project # build project
sh autogen.sh mkdir build
./configure --disable-openssl cd build
make -j$(nproc) clean cmake -DEVENT__DISABLE_MBEDTLS=ON -DEVENT__DISABLE_OPENSSL=ON -DEVENT__LIBRARY_TYPE=STATIC ../
make -j$(nproc) all make
make install make install
# build fuzzer # build fuzzer
for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do
fuzz_basename=$(basename -s .cc $fuzzers) fuzz_basename=$(basename -s .cc $fuzzers)
$CXX $CXXFLAGS -std=c++11 -Iinclude \ $CXX $CXXFLAGS -std=c++11 -Iinclude \
$fuzzers $LIB_FUZZING_ENGINE ./.libs/libevent.a ./.libs/libevent_core.a \ $fuzzers $LIB_FUZZING_ENGINE ./lib/libevent.a ./lib/libevent_core.a \
./.libs/libevent_pthreads.a ./.libs/libevent_extra.a \ ./lib/libevent_pthreads.a ./lib/libevent_extra.a \
-o $OUT/$fuzz_basename -o $OUT/$fuzz_basename
done done