aboutsummaryrefslogtreecommitdiff
path: root/projects/myanmar-tools/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/myanmar-tools/build.sh')
-rw-r--r--projects/myanmar-tools/build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/projects/myanmar-tools/build.sh b/projects/myanmar-tools/build.sh
index 771601bfc..e13632297 100644
--- a/projects/myanmar-tools/build.sh
+++ b/projects/myanmar-tools/build.sh
@@ -1,16 +1,19 @@
+#!/bin/bash -eu
# Copyright 2019 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
#
-# https://www.apache.org/licenses/LICENSE-2.0
+# 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.
+#
+################################################################################
cd $SRC/myanmar-tools/clients/cpp
mkdir build
@@ -30,7 +33,7 @@ cp libmyanmartools.so $OUT/lib
# Copy libunwind since it isn't on the ClusterFuzz bot images.
cp /usr/lib/x86_64-linux-gnu/libunwind.so.8 $OUT/lib/
$CXX $CXXFLAGS -std=c++11 -I../public -L$OUT/lib \
- -Wl,-rpath,'$ORIGIN/lib' -lmyanmartools \
+ -Wl,-rpath,'$ORIGIN/lib' -lmyanmartools -lunwind \
-o $OUT/zawgyi_detector_fuzz_target \
../zawgyi_detector_fuzz_target.cpp \
$LIB_FUZZING_ENGINE