[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Gem Build Flags

jensthiede

12/14/2007 11:00:00 AM

I'm trying to build the rubysdl gem on my x86 iMac. Everything seems
to be fine, except I get linking errors because I don't use an sdl
library with support for PPC.

In short, I'd like to get rid of the "-arch ppc" flag, especially when
linking.

Any help would be appreciated,

Jens Thiede.
2 Answers

Eric Hodel

12/18/2007 12:45:00 AM

0

On Dec 14, 2007, at 03:02 AM, Jens Thiede wrote:

> I'm trying to build the rubysdl gem on my x86 iMac. Everything seems
> to be fine, except I get linking errors because I don't use an sdl
> library with support for PPC.
>
> In short, I'd like to get rid of the "-arch ppc" flag, especially when
> linking.
>
> Any help would be appreciated,

a) build libsdl with -arch ppc
b) build and install your own ruby
c) edit rbconfig.rb to remove -arch ppc

Laurent Sansonetti

12/18/2007 12:59:00 AM

0

On Dec 18, 2007 1:45 AM, Eric Hodel <drbrain@segment7.net> wrote:
>
> On Dec 14, 2007, at 03:02 AM, Jens Thiede wrote:
>
> > I'm trying to build the rubysdl gem on my x86 iMac. Everything seems
> > to be fine, except I get linking errors because I don't use an sdl
> > library with support for PPC.
> >
> > In short, I'd like to get rid of the "-arch ppc" flag, especially when
> > linking.
> >
> > Any help would be appreciated,
>
> a) build libsdl with -arch ppc
> b) build and install your own ruby
> c) edit rbconfig.rb to remove -arch ppc

d) set ARCHFLAGS to "-arch i386" before starting the gem command.

http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/index.html#//apple_ref/doc/uid/TP40006659-DontLinkE...

Laurent