fix_export_zlib_symbols.patch 819 B

12345678910111213141516171819202122
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Shelley Vohr <[email protected]>
  3. Date: Mon, 1 Jun 2020 15:30:47 -0800
  4. Subject: fix: export zlib symbols
  5. This patch sets ZLIB_DLL so that we properly export zlib symbols.
  6. diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
  7. index 378bd0df75ca2283d2c87b31b3f8a50deda553ed..06dda222dd86f11fb9aa1a19bf1334d28a514bac 100644
  8. --- a/third_party/zlib/BUILD.gn
  9. +++ b/third_party/zlib/BUILD.gn
  10. @@ -327,6 +327,10 @@ component("zlib") {
  11. defines = []
  12. deps = []
  13. + if (is_win) {
  14. + defines += [ "ZLIB_DLL" ]
  15. + }
  16. +
  17. if (!use_x86_x64_optimizations && !use_arm_neon_optimizations) {
  18. # Apparently android_cronet bot builds with NEON disabled and
  19. # we also should disable optimizations for iOS@x86 (a.k.a. simulator).