From 0fc436aad9f25e3b56a45589aac7d99334a544d3 Mon Sep 17 00:00:00 2001 From: Google AutoFuzz Team Date: Thu, 23 Apr 2020 02:37:04 +0200 Subject: Add libzmq (#3690) --- projects/libzmq/build.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 projects/libzmq/build.sh (limited to 'projects/libzmq/build.sh') diff --git a/projects/libzmq/build.sh b/projects/libzmq/build.sh new file mode 100755 index 00000000..be98e338 --- /dev/null +++ b/projects/libzmq/build.sh @@ -0,0 +1,30 @@ +#!/bin/bash -eu +# Copyright 2020 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# build project +cd $SRC/libzmq +./autogen.sh --disable-shared +./configure +make -j$(nproc) V=1 + +# build fuzzers +for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do + fuzz_basename=$(basename -s .cc $fuzzers) + $CXX $CXXFLAGS -std=c++11 -I. \ + $fuzzers $LIB_FUZZING_ENGINE ./src/.libs/libzmq.a \ + -o $OUT/$fuzz_basename +done -- cgit v1.2.3