From 014394df3a2c9b06058d31c0654df11b4099d6c4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 12 Oct 2011 01:41:17 +0000 Subject: [PATCH] build: compile all targets with large file support --- uv.gyp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/uv.gyp b/uv.gyp index 1643e4d2..900551ec 100644 --- a/uv.gyp +++ b/uv.gyp @@ -1,4 +1,17 @@ { + 'target_defaults': { + 'conditions': [ + ['OS != "win"', { + 'defines': [ + '_LARGEFILE_SOURCE', + '_FILE_OFFSET_BITS=64', + '_GNU_SOURCE', + 'EIO_STACKSIZE=262144' + ], + }], + ], + }, + 'targets': [ { 'target_name': 'uv', @@ -171,12 +184,6 @@ 'src/unix/ev/event.h', ], 'include_dirs': [ 'src/unix/ev', ], - 'defines': [ - '_LARGEFILE_SOURCE', - '_FILE_OFFSET_BITS=64', - '_GNU_SOURCE', - 'EIO_STACKSIZE=262144' - ], 'libraries': [ '-lm' ] }], [ 'OS=="mac"', {