mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
addon.gypi: define _LARGEFILE_SOURCE, _FILE_OFFSET_BITS
Since as of joyent/node@83e5e20c2c, these are no longer defined in node's commong.gypi file, so we need to define them here as well.
This commit is contained in:
parent
ce609ea9e2
commit
019a78369c
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
'conditions': [
|
||||
[ 'OS=="mac"', {
|
||||
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
||||
'libraries': [ '-undefined dynamic_lookup' ],
|
||||
'xcode_settings': {
|
||||
'DYLIB_INSTALL_NAME_BASE': '@rpath'
|
||||
|
@ -27,6 +28,9 @@
|
|||
# warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
|
||||
# needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
|
||||
'msvs_disabled_warnings': [ 4251 ],
|
||||
}, {
|
||||
# OS!="win"
|
||||
'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
|
||||
}],
|
||||
[ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
|
||||
'cflags': [ '-fPIC' ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue