Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
deps: hide zlib internal symbols
Use HAVE_HIDDEN when compiling zlib so it's internal symbols
have __attribute__((visibility ("hidden"))).
  • Loading branch information
sam-github committed Jan 31, 2017
commit 1ae79202d0a358e01947ab53b006802896dd13be
3 changes: 3 additions & 0 deletions deps/zlib/zlib.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
'.',
],
},
'defines': [
'HAVE_HIDDEN',
],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to the 'OS!="win"' conditional below. The __attribute__((visibility("hidden"))) doesn't work with Visual Studio (see https://ci.nodejs.org/job/node-compile-windows/6701/label=win-vs2015/consoleFull) and it probably isn't needed anyway because we use deps/zlib/win32/zlib.def to control what is and isn't exported.

Alternatively, if you teach tools/mkssldef.py to generate UNIX linker maps, we can unify the two approaches.

'conditions': [
['OS!="win"', {
'cflags!': [ '-ansi' ],
Expand Down