From d7b9002aa5910810671323cc504484d7f06c7e92 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 17 Nov 2016 09:02:01 -0800 Subject: [PATCH] Define BORINGSSL_SHARED_LIBRARY when building tests with Bazel. Bazel builds tests as shared libraries and the new p256-x86_64_test depends on accessing unexported symbols. Thus we need to define BORINGSSL_SHARED_LIBRARY when building tests. Change-Id: I1270c69ac9d1bcf6baa05ef6666078bd368d80cf Reviewed-on: https://boringssl-review.googlesource.com/12360 Reviewed-by: David Benjamin Commit-Queue: David Benjamin CQ-Verified: CQ bot account: commit-bot@chromium.org --- util/generate_build_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/generate_build_files.py b/util/generate_build_files.py index 0b84bfd8..aae158d1 100644 --- a/util/generate_build_files.py +++ b/util/generate_build_files.py @@ -266,7 +266,7 @@ class Bazel(object): out.write(' "%s",\n' % arg) out.write(' ],\n') - out.write(' copts = copts,\n') + out.write(' copts = copts + ["-DBORINGSSL_SHARED_LIBRARY"],\n') if len(data_files) > 0: out.write(' data = [\n')