summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/fuzzer-test-suite/openssl-1.0.2d/build.sh
blob: a22ea4e0a28c1bcb640c676cd6e66cbc1fe5dfe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
OpenPOWER on IntegriCloud