Permalink
Browse files

Add lfs flags to node addon script

  • Loading branch information...
1 parent 2d09ef8 commit aef0d8086b233f97535841c9ea91f7139f8fc3bb @ry ry committed Sep 13, 2010
Showing with 10 additions and 3 deletions.
  1. +10 −3 tools/wafadmin/Tools/node_addon.py
@@ -29,8 +29,15 @@ def detect(conf):
conf.env['LIBPATH_NODE'] = lib
conf.env['CPPPATH_NODE'] = join(prefix, 'include', 'node')
- conf.env['CPPFLAGS_NODE'] = '-D_GNU_SOURCE'
- conf.env['CPPFLAGS_NODE'] = '-DEV_MULTIPLICITY=0'
+
+ conf.env.append_value('CPPFLAGS_NODE', '-D_GNU_SOURCE')
+ conf.env.append_value('CPPFLAGS_NODE', '-DEV_MULTIPLICITY=0')
+
+ conf.env.append_value('CCFLAGS_NODE', '-D_LARGEFILE_SOURCE')
+ conf.env.append_value('CCFLAGS_NODE', '-D_FILE_OFFSET_BITS=64')
+
+ conf.env.append_value('CXXFLAGS_NODE', '-D_LARGEFILE_SOURCE')
+ conf.env.append_value('CXXFLAGS_NODE', '-D_FILE_OFFSET_BITS=64')
# with symbols
conf.env.append_value('CCFLAGS', ['-g'])
@@ -70,4 +77,4 @@ def get_prefix():
prefix = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..'))
else:
prefix = os.environ['PREFIX_NODE']
- return prefix
+ return prefix

1 comment on commit aef0d80

Sannis commented on aef0d80 Sep 13, 2010

Thanks, small decrease wscripts size.

Please sign in to comment.