Permalink
Browse files

allow setting custom LINKFLAGS via env setting

  • Loading branch information...
Dane Springmeyer
Dane Springmeyer committed Aug 4, 2011
1 parent 514b6a2 commit 77a44105c5297176a605f4562e4376930a356565
Showing with 7 additions and 0 deletions.
  1. +7 −0 wscript
View
@@ -1,3 +1,4 @@
+import os
import Options
from Configure import ConfigurationError
from os.path import exists
@@ -14,6 +15,12 @@ def set_options(opt):
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
+
+ linkflags = []
+ if os.environ.has_key('LINKFLAGS'):
+ linkflags.extend(os.environ['LINKFLAGS'].split(' '))
+ conf.env.append_value("LINKFLAGS", linkflags)
+
try:
conf.check_cfg(package="sqlite3", args='--libs --cflags',
uselib_store="SQLITE3", mandatory=True)

0 comments on commit 77a4410

Please sign in to comment.