2020-06-17 22:57:12 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
|
|
|
Date: Mon, 1 Jun 2020 15:30:47 -0800
|
|
|
|
Subject: fix: export zlib symbols
|
|
|
|
|
|
|
|
This patch sets ZLIB_DLL so that we properly export zlib symbols.
|
|
|
|
|
|
|
|
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
|
2023-04-04 13:42:56 +00:00
|
|
|
index 0ffd486d731d8d2abeb1a4e215fe233d7ee6db2f..847565c1e5fa6e9e7aeab95268fc15e87a117d76 100644
|
2020-06-17 22:57:12 +00:00
|
|
|
--- a/third_party/zlib/BUILD.gn
|
|
|
|
+++ b/third_party/zlib/BUILD.gn
|
2023-03-15 09:20:32 +00:00
|
|
|
@@ -326,6 +326,10 @@ component("zlib") {
|
2020-06-17 22:57:12 +00:00
|
|
|
defines = []
|
|
|
|
deps = []
|
|
|
|
|
|
|
|
+ if (is_win) {
|
|
|
|
+ defines += [ "ZLIB_DLL" ]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (!use_x86_x64_optimizations && !use_arm_neon_optimizations) {
|
|
|
|
# Apparently android_cronet bot builds with NEON disabled and
|
|
|
|
# we also should disable optimizations for iOS@x86 (a.k.a. simulator).
|