forked from OSchip/llvm-project
14 lines
446 B
Bash
Executable File
14 lines
446 B
Bash
Executable File
#!/bin/bash
|
|
. $(dirname $0)/../common.sh
|
|
|
|
build_lib() {
|
|
rm -rf BUILD
|
|
cp -rf SRC BUILD
|
|
(cd BUILD && ./config && make clean && make CC="clang $FUZZ_CXXFLAGS" -j $JOBS)
|
|
}
|
|
|
|
get_git_tag https://github.com/openssl/openssl.git OpenSSL_1_0_2d SRC
|
|
build_lib
|
|
build_libfuzzer
|
|
clang++ -g $SCRIPT_DIR/target.cc -DCERT_PATH=\"$SCRIPT_DIR/\" $FUZZ_CXXFLAGS BUILD/libssl.a BUILD/libcrypto.a libFuzzer.a -lgcrypt -o $EXECUTABLE_NAME_BASE -I BUILD/include
|