diff --git a/lib/build.ts b/lib/build.ts index e6b9a764..8559ddf5 100644 --- a/lib/build.ts +++ b/lib/build.ts @@ -57,6 +57,12 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] { // Small ICU args.push('--with-intl=small-icu'); + // Workaround for nodejs/node#39313 + // All supported macOS versions have zlib as a system library + if (targetPlatform === 'macos') { + args.push('--shared-zlib'); + } + return args; }