diff options
author | Robert Newson <robert.newson@cloudant.com> | 2011-04-08 08:53:20 +0100 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2011-04-08 08:53:41 +0100 |
commit | eb26228bccb92cb0c2fa23ff187abf36ba4b1f13 (patch) | |
tree | 4106be7a0318219b9bbc7f6a6caf4000b33aef23 /couchjs/c_src/SConscript | |
parent | 130a9d0f88e1650b661116e9114012ede317967d (diff) |
add Solaris build support.
Diffstat (limited to 'couchjs/c_src/SConscript')
-rw-r--r-- | couchjs/c_src/SConscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index f61cdf8b..7837be58 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -20,6 +20,11 @@ def require_lib(name): env = Environment(CCFLAGS='-g -O2 -DXP_UNIX') +if os.uname()[0] == 'SunOS': + env['CC'] = '/usr/sfw/bin/gcc' + env['CCFLAGS'] += ' -I/opt/local/include' + env.Append(LINKFLAGS=['-L/opt/local/lib']) + if os.uname()[0] == 'FreeBSD': env['CCFLAGS'] += ' -I/usr/local/include' env.Append(LINKFLAGS=['-L/usr/local/lib']) |