From c9e5178f3c4081abdb1f2a138da6f8a4114d4905 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Tue, 31 Jan 2017 08:12:24 -0800 Subject: 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 Reviewed-By: Ben Noordhuis Reviewed-By: Shigeki Ohtsu --- deps/zlib/zlib.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deps/zlib') 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 -- cgit v1.2.3