Skip to content
Browse files

expose linkflags

  • Loading branch information...
1 parent 4b1b3a5 commit 2fb637e06356ad9952652beb5ac62c9c6ea5cc96 @kkaefer committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 wscript
View
6 wscript
@@ -1,3 +1,4 @@
+import os
import Options
from os.path import exists
from shutil import copy2 as copy
@@ -16,6 +17,11 @@ def configure(conf):
if not conf.check(lib="z", libpath=['/usr/local/lib'], uselib_store="ZLIB"):
conf.fatal('Missing zlib');
+ linkflags = []
+ if os.environ.has_key('LINKFLAGS'):
+ linkflags.extend(os.environ['LINKFLAGS'].split(' '))
+ conf.env.append_value("LINKFLAGS", linkflags)
+
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]

0 comments on commit 2fb637e

Please sign in to comment.
Something went wrong with that request. Please try again.