diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2017-01-31 08:12:24 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-02-02 10:10:47 -0800 |
commit | c9e5178f3c4081abdb1f2a138da6f8a4114d4905 (patch) | |
tree | aeece20f6d8bfa2591d88ee6209df4033abe6475 | |
parent | 58dc229d9aac29132cf038ed07b3b7e13b671dca (diff) | |
download | node-new-c9e5178f3c4081abdb1f2a138da6f8a4114d4905.tar.gz |
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>
-rw-r--r-- | deps/zlib/zlib.gyp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp index cf0b090d9e..970bc787ba 100644 --- a/deps/zlib/zlib.gyp +++ b/deps/zlib/zlib.gyp @@ -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 |