Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Link to objects instead of shlibs for evcom, http_parser, coupling
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 27, 2009
1 parent 5f466c8 commit 122e74b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def build_v8(bld):
bld.env["CPPPATH_V8"] = "deps/v8/include"
bld.env_of_name('default')["STATICLIB_V8"] = "v8"
bld.env_of_name('default')["LINKFLAGS_V8"] = ["-pthread"]
bld.env_of_name('default')["LIBPATH_V8"] = bld.srcnode.abspath(bld.env_of_name("default"))

### v8 debug
if bld.env["USE_DEBUG"]:
Expand All @@ -241,6 +242,7 @@ def build_v8(bld):
v8_debug.uselib = "EXECINFO"
bld.env_of_name('debug')["STATICLIB_V8"] = "v8_g"
bld.env_of_name('debug')["LINKFLAGS_V8"] = ["-pthread"]
bld.env_of_name('debug')["LIBPATH_V8"] = bld.srcnode.abspath(bld.env_of_name("debug"))

bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')

Expand All @@ -251,7 +253,7 @@ def build(bld):
build_v8(bld)

### evcom
evcom = bld.new_task_gen("cc", "staticlib")
evcom = bld.new_task_gen("cc")
evcom.source = "deps/evcom/evcom.c"
evcom.includes = "deps/evcom/ deps/libev/"
evcom.name = "evcom"
Expand All @@ -263,7 +265,7 @@ def build(bld):
bld.install_files('${PREFIX}/include/node/', 'deps/evcom/evcom.h')

### http_parser
http_parser = bld.new_task_gen("cc", "staticlib")
http_parser = bld.new_task_gen("cc")
http_parser.source = "deps/http_parser/http_parser.c"
http_parser.includes = "deps/http_parser/"
http_parser.name = "http_parser"
Expand All @@ -273,7 +275,7 @@ def build(bld):
http_parser.clone("debug")

### coupling
coupling = bld.new_task_gen("cc", "staticlib")
coupling = bld.new_task_gen("cc")
coupling.source = "deps/coupling/coupling.c"
coupling.includes = "deps/coupling/"
coupling.name = "coupling"
Expand Down Expand Up @@ -337,9 +339,9 @@ def build(bld):
deps/http_parser
deps/coupling
"""
node.add_objects = 'ev eio'
node.uselib_local = "evcom http_parser coupling"
node.uselib = "UDNS V8 EXECINFO DL"
node.add_objects = 'ev eio evcom http_parser coupling'
node.uselib_local = ''
node.uselib = 'UDNS V8 EXECINFO DL'
node.install_path = '${PREFIX}/lib'
node.install_path = '${PREFIX}/bin'
node.chmod = 0755
Expand Down

0 comments on commit 122e74b

Please sign in to comment.