Browse Source

Add lfs flags to node addon script

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
aef0d8086b
  1. 13
      tools/wafadmin/Tools/node_addon.py

13
tools/wafadmin/Tools/node_addon.py

@ -29,8 +29,15 @@ def detect(conf):
conf.env['LIBPATH_NODE'] = lib conf.env['LIBPATH_NODE'] = lib
conf.env['CPPPATH_NODE'] = join(prefix, 'include', 'node') 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 # with symbols
conf.env.append_value('CCFLAGS', ['-g']) conf.env.append_value('CCFLAGS', ['-g'])
@ -70,4 +77,4 @@ def get_prefix():
prefix = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..')) prefix = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..'))
else: else:
prefix = os.environ['PREFIX_NODE'] prefix = os.environ['PREFIX_NODE']
return prefix return prefix

Loading…
Cancel
Save