apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Rossi <bob_ro...@cox.net>
Subject Re: MinGW Cross-Compiler support
Date Sat, 24 Mar 2007 12:33:20 GMT
On Fri, Mar 23, 2007 at 06:47:19PM -0700, Dzonatas wrote:
> Is this acceptable to default the cache variables to simplify the needed 
> hints?

My 2 cents.

> This changes the "mingw" case in configure.in:
> 
> --- ../configure.in     2006-09-08 16:41:45.000000000 +0000
> +++ configure.in        2007-03-23 23:28:49.000000000 +0000
> @@ -411,6 +411,17 @@
>        eolstr="\\n"
>        proc_mutex_is_global=1
>        OBJECTS_PLATFORM='$(OBJECTS_win32)'
> +       if test "$cross_compiling" = yes; then
> +           ac_cv_file__dev_zero=no
> +           ac_cv_func_setpgrp_void=no
> +           apr_cv_tcp_nodelay_with_cork=no

The above I also believe should be added. I had to solve the same
problem independently.
> +           case $host in
> +               *mingw32*)
> +                   ac_cv_sizeof_ssize_t=4
> +                   ac_cv_sizeof_size_t=4
> +                   ;;

The above I don't think should be addeed. Instead we should no longer
use APR_CHECK_SIZEOF_EXTENDED and instaed use 
  http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_mono/autoconf.html#IDX472
which claims to work when cross compiling. That way, no constants are
needed.

Thanks,
Bob Rossi

Mime
View raw message