diff options
author | Ryan <ry@tinyclouds.org> | 2009-06-22 18:28:48 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-06-22 18:28:48 +0200 |
commit | cc67d8efc765d37eae872431ffbf5e17210f62e1 (patch) | |
tree | 00d5e2f3b2332901ae778957604536334300db4e /deps | |
parent | 7703a4cacb3df41d2f1946997db6e87129d3c819 (diff) | |
download | node-new-cc67d8efc765d37eae872431ffbf5e17210f62e1.tar.gz |
Fix bug waf problem with HAVE_CLOCK_SYSCALL
Diffstat (limited to 'deps')
-rw-r--r-- | deps/libeio/wscript | 2 | ||||
-rw-r--r-- | deps/libev/wscript | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/deps/libeio/wscript b/deps/libeio/wscript index 07afd24dea..90be7cce49 100644 --- a/deps/libeio/wscript +++ b/deps/libeio/wscript @@ -104,8 +104,6 @@ def configure(conf): } """, define_name="HAVE_SYNC_FILE_RANGE") - conf.write_config_header('config.h') - def build(bld): libeio = bld.new_task_gen("cc", "staticlib") libeio.source = "eio.c" diff --git a/deps/libev/wscript b/deps/libev/wscript index d3bbbd6d05..27b1f01f2a 100644 --- a/deps/libev/wscript +++ b/deps/libev/wscript @@ -26,20 +26,23 @@ def configure(conf): code = """ #include <syscall.h> #include <time.h> + #include <stdio.h> int main() { struct timespec ts; - int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts); + int status = syscall(SYS_clock_gettime, CLOCK_REALTIME, &ts); + puts("1"); // fucking waf... return 0; } """ - conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL") + conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, + msg="Checking for SYS_clock_gettime") + conf.check_cc(lib="rt", header_name="time.h", function_name="clock_gettime") conf.check_cc(lib="rt", header_name="time.h", function_name="nanosleep") conf.check_cc(lib="m", header_name="math.h", function_name="ceil") conf.define("HAVE_CONFIG_H", 1) - conf.write_config_header('config.h') conf.env.append_value('CCFLAGS', ['-DEV_MULTIPLICITY=0']) conf.env.append_value('CXXFLAGS', ['-DEV_MULTIPLICITY=0']) |