mirror of https://github.com/google/oss-fuzz.git
libevent: fix build (#7149)
This commit is contained in:
parent
abae88cc07
commit
1a55338772
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue