[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Cross-compiling ruby

Ryan Pavlik

7/15/2003 7:39:00 PM

On Wed, 16 Jul 2003 04:30:03 +0900
Ben Giddings <ben@thingmagic.com> 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:
>
<snip>

The "configure" script is generated by autoconf from configure.in.

<snip>
> 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.
<snip>

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 <rpav@users.sf.net>

"Well what was it, Mr. Nightmare Pants?" - 8BT