Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Build on solaris

  • Loading branch information...
commit 4b6cf1c8ad39473f84a639d4360c0450531d898c 1 parent f4d9c37
@mcavage authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 wscript
View
8 wscript
@@ -34,7 +34,7 @@ def configure(conf):
o = Options.options
os.chdir(jsonc_root)
- args = ['./configure', '--disable-shared', '--enable-static']
+ args = ['./configure', '--disable-shared', '--enable-static', '--with-pic', '--with-gnu-ld']
subprocess.check_call(args)
conf.env.append_value('CPPPATH', jsonc_root)
@@ -71,9 +71,10 @@ def lint(ctx):
subprocess.call(['jshint', os.path.join(dirname, f)])
def build(bld):
+ obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
os.chdir(jsonc_root)
subprocess.check_call(['make', '-j', '3'])
- subprocess.check_call(['ar', 'rcs', 'libjsonc.a',
+ subprocess.check_call(['ar', 'rcus', 'libjsonc.a',
'arraylist.o',
'debug.o',
'json_object.o',
@@ -82,9 +83,8 @@ def build(bld):
'linkhash.o',
'printbuf.o'])
os.chdir(cwd)
-
- obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.staticlib = "jsonc"
+
obj.target = 'node_db_native'
obj.source = './src/db_index.cc '
obj.name = "node-db"
Please sign in to comment.
Something went wrong with that request. Please try again.