aboutsummaryrefslogtreecommitdiff
path: root/projects/grpc
diff options
context:
space:
mode:
authormatt-kwong <mattkwong@google.com>2017-02-13 18:45:26 -0800
committerKostya Serebryany <konstantin.s.serebryany@gmail.com>2017-02-13 18:45:26 -0800
commit647e48241453527745b6670f0ab124ddf3f58b3a (patch)
tree8b39d1adf9ec0915665e5404dfcc615de941d95b /projects/grpc
parent677fdad80acbc58ae3d3802292a2d6f390a04385 (diff)
downloadoss-fuzz-647e48241453527745b6670f0ab124ddf3f58b3a.tar.gz
Make gRPC link statically (#380)
Diffstat (limited to 'projects/grpc')
-rwxr-xr-xprojects/grpc/build.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/projects/grpc/build.sh b/projects/grpc/build.sh
index 89cfad789..b9f6bbc99 100755
--- a/projects/grpc/build.sh
+++ b/projects/grpc/build.sh
@@ -35,15 +35,16 @@ FUZZER_LIBRARIES="\
bazel-bin/*.a \
bazel-bin/test/core/util/*.a \
bazel-bin/test/core/end2end/*.a \
-bazel-bin/external/submodule_boringssl/*.so \
+bazel-bin/third_party/boringssl-with-bazel/libssl.a \
+bazel-bin/third_party/boringssl-with-bazel/libcrypto.a \
bazel-bin/external/submodule_zlib/_objs/z/external/submodule_zlib/*.o \
-bazel-bin/third_party/nanopb/*.so \
+bazel-bin/third_party/nanopb/*.a \
bazel-bin/*.a \
"
-# build project
-bazel
-bazel build --spawn_strategy=standalone --genrule_strategy=standalone :all test/... examples/cpp/...
+# build grpc
+bazel build --dynamic_mode=off --spawn_strategy=standalone --genrule_strategy=standalone \
+ :all test/... third_party/boringssl-with-bazel/... third_party/nanopb/...
CFLAGS="${CFLAGS} -Iinclude -I."
CXXFLAGS="${CXXFLAGS} -Iinclude -I. -stdlib=libc++"