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 <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
Adam Langley 2016-11-17 09:02:01 -08:00 committed by CQ bot account: commit-bot@chromium.org
parent 5f04b6bc3a
commit d7b9002aa5

View File

@ -266,7 +266,7 @@ class Bazel(object):
out.write(' "%s",\n' % arg) out.write(' "%s",\n' % arg)
out.write(' ],\n') out.write(' ],\n')
out.write(' copts = copts,\n') out.write(' copts = copts + ["-DBORINGSSL_SHARED_LIBRARY"],\n')
if len(data_files) > 0: if len(data_files) > 0:
out.write(' data = [\n') out.write(' data = [\n')