deps: hide zlib internal symbols

Use HAVE_HIDDEN when compiling zlib so it's internal symbols
have __attribute__((visibility ("hidden"))).

PR-URL: https://github.com/nodejs/node/pull/11082
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
This commit is contained in:
Sam Roberts 2017-01-31 08:12:24 -08:00 committed by James M Snell
parent 58dc229d9a
commit c9e5178f3c

2
deps/zlib/zlib.gyp vendored
View File

@ -51,7 +51,7 @@
'conditions': [
['OS!="win"', {
'cflags!': [ '-ansi' ],
'defines': [ 'Z_HAVE_UNISTD_H' ],
'defines': [ 'Z_HAVE_UNISTD_H', 'HAVE_HIDDEN' ],
}],
['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', {
# Mac, Android and the BSDs don't have fopen64, ftello64, or