diff --git a/third_party/freetype2/BUILD.gn b/third_party/freetype2/BUILD.gn index 6d5732b37aed..34b410b17d4f 100644 --- a/third_party/freetype2/BUILD.gn +++ b/third_party/freetype2/BUILD.gn @@ -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",