diff options
Diffstat (limited to 'recipes/nodejs/files/libev-cross-cc.patch')
-rw-r--r-- | recipes/nodejs/files/libev-cross-cc.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/nodejs/files/libev-cross-cc.patch b/recipes/nodejs/files/libev-cross-cc.patch new file mode 100644 index 0000000000..446015b3cf --- /dev/null +++ b/recipes/nodejs/files/libev-cross-cc.patch @@ -0,0 +1,18 @@ +diff --git node-v0.2.0/deps/libev/wscript.orig node-v0.2.0/deps/libev/wscript +index 19e7bb2..f0a3d3b 100644 +--- node-v0.2.0/deps/libev/wscript.orig ++++ node-v0.2.0/deps/libev/wscript +@@ -52,7 +52,12 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, ++ # TODO determine this dynamically ++ CROSS = True ++ execute = True ++ if CROSS: ++ execute = False ++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=execute, + msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT') |