From: WATANABE Hirofumi Date: 2002-09-13T23:55:12+09:00 Subject: Re: Crosscompiling Ruby on Linux for Win Hi, Martin Kahlert writes: > I naively tried to cross compile a Windows version on my linux box. > (Yesterday's snapshot.tar.gz) > > $ ./configure --host=i586-pc-mingw32 > .... > checking whether setpgrp takes no argument... \ > configure: error: cannot check setpgrp when cross compiling > > setpgrp is according to my man page a POSIX function, and thus it > is probably not available on Windows at all. > > So what should I do here? > Is it possible to cross compile Ruby at all this way? My building script: % CFLAGS=-Os \ CC="i686-pc-cygwin-gcc -mno-cygwin" \ ac_cv_func_getpgrp_void=yes \ ac_cv_func_setpgrp_void=yes \ ac_cv_c_bigendian=no \ ac_cv_sizeof_long_long=8 \ ac_cv_func_memcmp_clean=yes \ ac_cv_func_memcmp_working=yes \ ./configure \ --target=i386-mingw32 \ --host=i686-pc-cygwin \ --build=i586-pc-linux-gnu \ --includedir=/usr/local/mingw/include \ --enable-shared \ --enable-tcltk_stubs \ --with-tcllib=tclstub83 \ --with-tklib=tkstub83 \ --with-opt-dir=/usr/local/mingw % make % make install DESTDIR=$HOME/dist/i386-mingw32 > Another question: How do i compile Extensions (on Windows natively) > using mingw when i use the one click installer? It is possible to exchange import libraries. Or, use forwarding DLL. http://www.ruby-lang.org/~eban/ruby/binaries/mingw/mingw32-ruby16-to-mswin32-ruby16.zip -- eban