@@ -232,6 +232,7 @@ def build_v8(bld):
232
232
bld .env ["CPPPATH_V8" ] = "deps/v8/include"
233
233
bld .env_of_name ('default' )["STATICLIB_V8" ] = "v8"
234
234
bld .env_of_name ('default' )["LINKFLAGS_V8" ] = ["-pthread" ]
235
+ bld .env_of_name ('default' )["LIBPATH_V8" ] = bld .srcnode .abspath (bld .env_of_name ("default" ))
235
236
236
237
### v8 debug
237
238
if bld .env ["USE_DEBUG" ]:
@@ -241,6 +242,7 @@ def build_v8(bld):
241
242
v8_debug .uselib = "EXECINFO"
242
243
bld .env_of_name ('debug' )["STATICLIB_V8" ] = "v8_g"
243
244
bld .env_of_name ('debug' )["LINKFLAGS_V8" ] = ["-pthread" ]
245
+ bld .env_of_name ('debug' )["LIBPATH_V8" ] = bld .srcnode .abspath (bld .env_of_name ("debug" ))
244
246
245
247
bld .install_files ('${PREFIX}/include/node/' , 'deps/v8/include/*.h' )
246
248
@@ -251,7 +253,7 @@ def build(bld):
251
253
build_v8 (bld )
252
254
253
255
### evcom
254
- evcom = bld .new_task_gen ("cc" , "staticlib" )
256
+ evcom = bld .new_task_gen ("cc" )
255
257
evcom .source = "deps/evcom/evcom.c"
256
258
evcom .includes = "deps/evcom/ deps/libev/"
257
259
evcom .name = "evcom"
@@ -263,7 +265,7 @@ def build(bld):
263
265
bld .install_files ('${PREFIX}/include/node/' , 'deps/evcom/evcom.h' )
264
266
265
267
### http_parser
266
- http_parser = bld .new_task_gen ("cc" , "staticlib" )
268
+ http_parser = bld .new_task_gen ("cc" )
267
269
http_parser .source = "deps/http_parser/http_parser.c"
268
270
http_parser .includes = "deps/http_parser/"
269
271
http_parser .name = "http_parser"
@@ -273,7 +275,7 @@ def build(bld):
273
275
http_parser .clone ("debug" )
274
276
275
277
### coupling
276
- coupling = bld .new_task_gen ("cc" , "staticlib" )
278
+ coupling = bld .new_task_gen ("cc" )
277
279
coupling .source = "deps/coupling/coupling.c"
278
280
coupling .includes = "deps/coupling/"
279
281
coupling .name = "coupling"
@@ -337,9 +339,9 @@ def build(bld):
337
339
deps/http_parser
338
340
deps/coupling
339
341
"""
340
- node .add_objects = 'ev eio'
341
- node .uselib_local = "evcom http_parser coupling"
342
- node .uselib = " UDNS V8 EXECINFO DL"
342
+ node .add_objects = 'ev eio evcom http_parser coupling '
343
+ node .uselib_local = ''
344
+ node .uselib = ' UDNS V8 EXECINFO DL'
343
345
node .install_path = '${PREFIX}/lib'
344
346
node .install_path = '${PREFIX}/bin'
345
347
node .chmod = 0755
0 commit comments