diff options
author | 2020-04-23 02:37:04 +0200 | |
---|---|---|
committer | 2020-04-23 10:37:04 +1000 | |
commit | 0fc436aad9f25e3b56a45589aac7d99334a544d3 (patch) | |
tree | 3ff4907e6d78ac41184c3455b420339c436a659a /projects/libzmq/build.sh | |
parent | a6b8cd8498b1c875c0ebde367f0fe5bafbb9ccf7 (diff) |
Add libzmq (#3690)
Diffstat (limited to 'projects/libzmq/build.sh')
-rwxr-xr-x | projects/libzmq/build.sh | 30 |
1 files changed, 30 insertions, 0 deletions
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 |