diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:05:10 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-11 05:05:10 +0000 |
commit | 381b24fcc18eba283cbf90222484f6f5681a8242 (patch) | |
tree | aab00ff7a7202a49d2afaa9084f260c2e519653b /projects/opensips/build.sh | |
parent | fb5f9297f193f715161e5938b881435d7708021f (diff) | |
parent | 964a594e4219fae93e07d1546c905a01e3bf8e3e (diff) | |
download | oss-fuzz-381b24fcc18eba283cbf90222484f6f5681a8242.tar.gz |
Snap for 8570526 from 964a594e4219fae93e07d1546c905a01e3bf8e3e to mainline-ipsec-releaseaml_ips_331910010aml_ips_331312000aml_ips_331310000aml_ips_331111030aml_ips_331014020android13-mainline-ipsec-release
Change-Id: Ic2fdd323947912f1a517b3ef88fe3a5037d24b94
Diffstat (limited to 'projects/opensips/build.sh')
-rwxr-xr-x | projects/opensips/build.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/projects/opensips/build.sh b/projects/opensips/build.sh new file mode 100755 index 000000000..6dc94ea07 --- /dev/null +++ b/projects/opensips/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash -eu +# Copyright 2021 Google LLC +# +# 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. +# +################################################################################ + +git apply --ignore-space-change --ignore-whitespace $SRC/patch.diff + +make static + +rm main.o +mkdir objects && find . -name "*.o" -exec cp {} ./objects/ \; +ar -r libopensips.a ./objects/*.o + +$CC $CFLAGS $LIB_FUZZING_ENGINE ./parser/fuzz_msg_parser.o ./libopensips.a -ldl -lresolv -o $OUT/fuzz_msg_parser +$CC $CFLAGS $LIB_FUZZING_ENGINE ./parser/fuzz_uri_parser.o ./libopensips.a -ldl -lresolv -o $OUT/fuzz_uri_parser +$CC $CFLAGS $LIB_FUZZING_ENGINE ./parser/fuzz_csv_parser.o ./libopensips.a -ldl -lresolv -o $OUT/fuzz_csv_parser |