[nodejs] libev breaks cross-compile (and a PATCH, but a bad one)

Vitali Lovich vlovich at gmail.com
Tue Aug 24 20:04:13 CEST 2010


We disable those checks when we run with --cross-compile (patched wscript to
do this).

On Tue, Aug 24, 2010 at 9:34 AM, AJ ONeal <coolaj86 at gmail.com> wrote:

> I've submitted patches to OpenEmbedded for cross-compiling NodeJS and being
> the good devs that they are, they suggested that I also share these with you
> - especially since there may be a more elegant solution than my brutal hack
> which will not work universally.
>
> 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')
>
>
> AJ ONeal
>
> --
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To post to this group, send email to nodejs at googlegroups.com.
> To unsubscribe from this group, send email to
> nodejs+unsubscribe at googlegroups.com<nodejs%2Bunsubscribe at googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20100824/b283ae26/attachment.html>


More information about the libev mailing list