mirror of https://github.com/google/oss-fuzz.git
kamailio: updated build script for new fuzzer. (#6387)
This commit is contained in:
parent
fafaf03d27
commit
4431a34a65
|
@ -22,7 +22,8 @@ export LD_EXTRA_OPTS="${CFLAGS}"
|
|||
|
||||
sed -i 's/int main(/int main2(/g' ./src/main.c
|
||||
|
||||
make || true
|
||||
export MEMPKG=sys
|
||||
make Q=verbose || true
|
||||
cd src
|
||||
mkdir objects && find . -name "*.o" -exec cp {} ./objects/ \;
|
||||
ar -r libkamilio.a ./objects/*.o
|
||||
|
@ -30,3 +31,7 @@ cd ../
|
|||
$CC $CFLAGS $LIB_FUZZING_ENGINE ./misc/fuzz/fuzz_uri.c -o $OUT/fuzz_uri \
|
||||
-DFAST_LOCK -D__CPU_i386 ./src/libkamilio.a \
|
||||
-I./src/ -I./src/core/parser -ldl -lresolv -lm
|
||||
|
||||
$CC $CFLAGS $LIB_FUZZING_ENGINE ./misc/fuzz/fuzz_parse_msg.c -o $OUT/fuzz_parse_msg \
|
||||
-DFAST_LOCK -D__CPU_i386 ./src/libkamilio.a \
|
||||
-I./src/ -I./src/core/parser -ldl -lresolv -lm
|
||||
|
|
Loading…
Reference in New Issue