Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: always compile with large file support
Browse files Browse the repository at this point in the history
Fixes a nasty sizeof(struct stat) mismatch bug that caused random crashes and
silent memory corruption.
  • Loading branch information
bnoordhuis committed Nov 30, 2011
1 parent eda1538 commit bbd976b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 5 additions & 1 deletion common.gypi
Expand Up @@ -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', ],
Expand All @@ -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
Expand Down
5 changes: 0 additions & 5 deletions deps/uv/uv.gyp
Expand Up @@ -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'],
Expand Down
2 changes: 0 additions & 2 deletions node.gyp
Expand Up @@ -124,8 +124,6 @@
'defines': [
'ARCH="<(target_arch)"',
'PLATFORM="<(OS)"',
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
],

'conditions': [
Expand Down

0 comments on commit bbd976b

Please sign in to comment.