Skip to content
This repository
Browse code

add Solaris build support.

  • Loading branch information...
commit eb26228bccb92cb0c2fa23ff187abf36ba4b1f13 1 parent 130a9d0
Robert Newson rnewson authored
4 README.Solaris
... ... @@ -0,0 +1,4 @@
  1 +
  2 +To build on solaris, you will need some additional packages.
  3 +
  4 +sudo pkgin install erlang-14.1.1 spidermonkey-1.8.0 icu-4.2.1 scmgit-1.7.0.7
4 apps/couch/rebar.config
@@ -4,5 +4,7 @@
4 4 {"DRV_LDFLAGS", "$DRV_LDFLAGS -lm -licuuc -licudata -licui18n -lpthread"},
5 5 {"linux", "DRV_LDFLAGS", "$DRV_LDFLAGS -lcrypt"},
6 6 {"freebsd", "DRV_CFLAGS", "$DRV_CFLAGS -I/usr/local/include"},
7   - {"freebsd", "DRV_LDFLAGS", "$DRV_LDFLAGS -L/usr/local/lib"}
  7 + {"freebsd", "DRV_LDFLAGS", "$DRV_LDFLAGS -L/usr/local/lib"},
  8 + {"solaris", "CC", "/usr/sfw/bin/gcc"},
  9 + {"solaris", "DRV_LDFLAGS", "$DRV_LDFLAGS -L/opt/local/lib"}
8 10 ]}.
2  configure
... ... @@ -1,4 +1,4 @@
1   -#!/bin/sh
  1 +#!/bin/bash
2 2 # Copyright 2010 Cloudant
3 3 #
4 4 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 couchjs/c_src/SConscript
@@ -20,6 +20,11 @@ def require_lib(name):
20 20
21 21 env = Environment(CCFLAGS='-g -O2 -DXP_UNIX')
22 22
  23 +if os.uname()[0] == 'SunOS':
  24 + env['CC'] = '/usr/sfw/bin/gcc'
  25 + env['CCFLAGS'] += ' -I/opt/local/include'
  26 + env.Append(LINKFLAGS=['-L/opt/local/lib'])
  27 +
23 28 if os.uname()[0] == 'FreeBSD':
24 29 env['CCFLAGS'] += ' -I/usr/local/include'
25 30 env.Append(LINKFLAGS=['-L/usr/local/lib'])
2  rel/overlay/bin/bigcouch
... ... @@ -1,4 +1,4 @@
1   -#!/bin/sh
  1 +#!/bin/bash
2 2
3 3 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 4 # use this file except in compliance with the License. You may obtain a copy of

0 comments on commit eb26228

Please sign in to comment.
Something went wrong with that request. Please try again.