Index: third_party/boringssl/BUILD.gn |
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn |
index 3308b25f392480e0f7a34d4d1d8be347098bbfed..50d749a42ca5b033bb8926eaa544a448821c8cf6 100644 |
--- a/third_party/boringssl/BUILD.gn |
+++ b/third_party/boringssl/BUILD.gn |
@@ -6,6 +6,11 @@ |
config("openssl_config") { |
include_dirs = [] |
include_dirs += [ "src/include" ] |
+ if (is_component_build) { |
+ defines += [ |
+ "BORINGSSL_SHARED_LIBRARY", |
+ ] |
+ } |
} |
# Config internal to this build file. |
@@ -26,7 +31,12 @@ component("boringssl") { |
direct_dependent_configs = [ ":openssl_config" ] |
cflags = [] |
- defines = [] |
+ defines = [ "BORINGSSL_IMPLEMENTATION" ] |
+ if (is_component_build) { |
+ defines += [ |
+ "BORINGSSL_SHARED_LIBRARY", |
+ ] |
+ } |
configs -= [ "//build/config/compiler:chromium_code" ] |
configs += [ "//build/config/compiler:no_chromium_code" ] |
@@ -63,15 +73,4 @@ component("boringssl") { |
} else { |
defines += [ "OPENSSL_NO_ASM" ] |
} |
- |
- if (is_component_build) { |
- if (!is_win) { |
- configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
- } |
- if (is_posix && !is_mac) { |
- # Avoid link failures on Linux x86-64. |
- # See http://rt.openssl.org/Ticket/Display.html?id=2466&user=guest&pass=guest |
- ldflags = [ "-Wl,-Bsymbolic" ] |
- } |
- } |
} |