diff options
author | benoitc <bchesneau@gmail.com> | 2010-12-18 01:56:40 +0100 |
---|---|---|
committer | benoitc <bchesneau@gmail.com> | 2011-01-01 17:01:25 +0100 |
commit | 582e1f9f93d8d6896320edad103a8027bdaf8006 (patch) | |
tree | c8069a53737dfd366e2ef7653b4d0d61b84b23b7 /couchjs | |
parent | fd1496ac700452ff79c5d5a6a893dcb8d32ce263 (diff) |
freebsd compat
Diffstat (limited to 'couchjs')
-rw-r--r-- | couchjs/c_src/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index 757e0289..f61cdf8b 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. +import os def require_lib(name): if not conf.CheckLib(name): @@ -18,6 +19,14 @@ def require_lib(name): Exit(1) env = Environment(CCFLAGS='-g -O2 -DXP_UNIX') + +if os.uname()[0] == 'FreeBSD': + env['CCFLAGS'] += ' -I/usr/local/include' + env.Append(LINKFLAGS=['-L/usr/local/lib']) + env['LIB_DL'] = env['LIB_RT'] = '' + env['LIB_COMPAT'] = 'compat' + + if not env.GetOption('clean'): conf = Configure(env, config_h='config.h') |