build: export zlib symbols on Windows · nodejs/node@359352c

Original file line numberDiff line numberDiff line change

@@ -370,9 +370,14 @@

370370

'-Wl,--no-whole-archive',

371371

],

372372

}],

373+

# openssl.def is based on zlib.def, zlib symbols

374+

# are always exported.

373375

['use_openssl_def==1', {

374376

'sources': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'],

375377

}],

378+

['OS=="win" and use_openssl_def==0', {

379+

'sources': ['deps/zlib/win32/zlib.def'],

380+

}],

376381

],

377382

}],

378383

],

@@ -568,6 +573,8 @@

568573

'-X^DSO',

569574

'-X^_',

570575

'-X^private_',

576+

# Base generated DEF on zlib.def

577+

'-Bdeps/zlib/win32/zlib.def'

571578

],

572579

},

573580

'conditions': [