Skip to content

Commit c9e5178

Browse files
sam-githubjasnell
authored andcommitted
deps: hide zlib internal symbols
Use HAVE_HIDDEN when compiling zlib so it's internal symbols have __attribute__((visibility ("hidden"))). PR-URL: #11082 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
1 parent 58dc229 commit c9e5178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/zlib/zlib.gyp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
'conditions': [
5252
['OS!="win"', {
5353
'cflags!': [ '-ansi' ],
54-
'defines': [ 'Z_HAVE_UNISTD_H' ],
54+
'defines': [ 'Z_HAVE_UNISTD_H', 'HAVE_HIDDEN' ],
5555
}],
5656
['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', {
5757
# Mac, Android and the BSDs don't have fopen64, ftello64, or

0 commit comments

Comments
 (0)