mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build: always compile with large file support
Fixes a nasty sizeof(struct stat) mismatch bug that caused random crashes and silent memory corruption.
This commit is contained in:
@@ -109,6 +109,11 @@
|
||||
'BUILDING_V8_SHARED=1',
|
||||
'BUILDING_UV_SHARED=1',
|
||||
],
|
||||
}, {
|
||||
'defines': [
|
||||
'_LARGEFILE_SOURCE',
|
||||
'_FILE_OFFSET_BITS=64',
|
||||
],
|
||||
}],
|
||||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
|
||||
'cflags': [ '-Wall', '-pthread', ],
|
||||
@@ -128,7 +133,6 @@
|
||||
],
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
'defines': ['__DARWIN_64_BIT_INO_T=1'],
|
||||
'xcode_settings': {
|
||||
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
||||
'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
|
||||
|
||||
5
deps/uv/uv.gyp
vendored
5
deps/uv/uv.gyp
vendored
@@ -3,15 +3,10 @@
|
||||
'conditions': [
|
||||
['OS != "win"', {
|
||||
'defines': [
|
||||
'_LARGEFILE_SOURCE',
|
||||
'_FILE_OFFSET_BITS=64',
|
||||
'_GNU_SOURCE',
|
||||
'EIO_STACKSIZE=262144'
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="mac"', {
|
||||
'defines': ['__DARWIN_64_BIT_INO_T=1'],
|
||||
}],
|
||||
['OS=="solaris"', {
|
||||
'cflags': ['-pthreads'],
|
||||
'ldlags': ['-pthreads'],
|
||||
|
||||
Reference in New Issue
Block a user