From: Ryan Pavlik Date: 2003-07-16T04:39:19+09:00 Subject: Re: Cross-compiling ruby On Wed, 16 Jul 2003 04:30:03 +0900 Ben Giddings wrote: > Hey all, > > Has anybody here ever cross-compiled ruby successfully? I ask because I'm > trying to do just that and "configure" busts in a number of places when > cross-compiling. An example: I tried cross-compiling it for the Zaurus... there are issues. > checking whether getpgrp takes no argument... configure: error: cannot check > getpgrp if cross compiling > > at which point "configure" exits. This is one of them. Comment out AC_FUNC_GETPGRP in configure.in, regenerate configure, and try again > I looked at its source and see: > The "configure" script is generated by autoconf from configure.in. > Oh, and jumping ahead a little bit, has anybody ever cross-compiled eRuby? If > I can get Ruby ported I think I'm going to try to use it to replace a really > awful CGI written in 18 C files with html mixed in haphasardly with C code. > Ugh. Nice. The other problem with cross compiling is the handling of shared libraries. I can get a static compile fine, but no shared libs or dynamic loading. Someone had a suggestion about explicitly specifying support, but I haven't had a chance to try it out. -- Ryan Pavlik "Well what was it, Mr. Nightmare Pants?" - 8BT