Browse Source

Link libev and libeio as a normal .o instead of as .a

Using WAF "staticlib" to compile libev tends to confuse it with a system
version. Thanks to mr.binary42 for helping debug.
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
c779647600
  1. 2
      deps/libeio/wscript
  2. 2
      deps/libev/wscript
  3. 3
      wscript

2
deps/libeio/wscript

@ -108,7 +108,7 @@ def configure(conf):
""", define_name="HAVE_SYNC_FILE_RANGE") """, define_name="HAVE_SYNC_FILE_RANGE")
def build(bld): def build(bld):
libeio = bld.new_task_gen("cc", "staticlib") libeio = bld.new_task_gen("cc")
libeio.source = "eio.c" libeio.source = "eio.c"
libeio.target = 'eio' libeio.target = 'eio'
libeio.name = 'eio' libeio.name = 'eio'

2
deps/libev/wscript

@ -60,7 +60,7 @@ def configure(conf):
conf.env.append_value('CXXFLAGS', ['-DEV_MULTIPLICITY=0']) conf.env.append_value('CXXFLAGS', ['-DEV_MULTIPLICITY=0'])
def build(bld): def build(bld):
libev = bld.new_task_gen("cc", "staticlib") libev = bld.new_task_gen("cc")
libev.source = 'ev.c' libev.source = 'ev.c'
libev.target = 'ev' libev.target = 'ev'
libev.name = 'ev' libev.name = 'ev'

3
wscript

@ -337,7 +337,8 @@ def build(bld):
deps/http_parser deps/http_parser
deps/coupling deps/coupling
""" """
node.uselib_local = "evcom ev eio http_parser coupling" node.add_objects = 'ev eio'
node.uselib_local = "evcom http_parser coupling"
node.uselib = "UDNS V8 EXECINFO DL" node.uselib = "UDNS V8 EXECINFO DL"
node.install_path = '${PREFIX}/lib' node.install_path = '${PREFIX}/lib'
node.install_path = '${PREFIX}/bin' node.install_path = '${PREFIX}/bin'

Loading…
Cancel
Save