Skip to content

Commit

Permalink
allow setting custom LINKFLAGS via env setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Aug 4, 2011
1 parent 514b6a2 commit 77a4410
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wscript
@@ -1,3 +1,4 @@
import os
import Options
from Configure import ConfigurationError
from os.path import exists
Expand All @@ -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)
Expand Down

0 comments on commit 77a4410

Please sign in to comment.