summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2011-12-06 11:49:10 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2011-12-06 11:49:31 -0500
commit055b6303ef31d2d17c504ae94c638f14c4f2cfe0 (patch)
treecbcea71eee5cd1c1cf9ee8180b81648b37f48998
parent757880902b8883808606168eb2dca50badba0c9a (diff)
Allow CPPPATH to be overriden in the environment
-rw-r--r--couchjs/c_src/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript
index da3752bc..451c03d3 100644
--- a/couchjs/c_src/SConscript
+++ b/couchjs/c_src/SConscript
@@ -22,7 +22,8 @@ def require_lib(name):
def runcmd(cmd):
return commands.getstatusoutput(cmd)
-env = Environment(CC="c++", CCFLAGS='-g -O2 -DXP_UNIX')
+env = Environment(CC="c++", CCFLAGS='-g -O2 -DXP_UNIX',
+ CPPPATH=os.getenv("CPPPATH"))
if os.uname()[0] == 'SunOS':
env['CC'] = '/usr/sfw/bin/gcc'