Skip to content

Commit

Permalink
Don't link with system/static zlib when building shared version
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jan 22, 2025
1 parent 08a5439 commit 2592c36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion third_party/freetype2/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ if (skia_use_system_freetype2) {
# We need to link with the zlib library (the system one or a
# static one) to avoid multiple definitions of crc32 and inflate
# functions between zlib and freetype
defines += [ "FT_CONFIG_OPTION_SYSTEM_ZLIB" ]
if (!is_component_build) {
defines += [ "FT_CONFIG_OPTION_SYSTEM_ZLIB" ]
}

sources = [
"../externals/freetype/src/autofit/autofit.c",
Expand Down

0 comments on commit 2592c36

Please sign in to comment.