From: Yvon T. <yvo...@fr...> - 2006-08-31 17:00:32
|
Le 31 ao=FBt 06 =E0 18:06, Lon Baker a =E9crit : > Any chance of sharing the source so it can be compiles on Intel macs? no, it's easy, it's my fault ;-) (the regexp starts with powerpc =20 then...) only one line to change in ext/extconf.rb : change line 6 (just after "case RUBY_PLATFORM") to : when /.*-darwin8.*/ i think that's all to do )) best and let me know if that works ! Yvon ---- ext/extconf.rb =20 ------------------------------------------------------------------------=20= ------------------- #!/usr/bin/env ruby # Loads mkmf which is used to make makefiles for Ruby extensions require 'mkmf' case RUBY_PLATFORM when /.*-darwin8.*/ $CFLAGS << " -I /System/Library/Frameworks/Carbon.framework/=20 Headers " $CFLAGS << " -I /System/Library/Frameworks/=20 CoreFoundation.framework/Headers " $CFLAGS << " -fnested-functions " $LDFLAGS << " -framework CoreFoundation " $LDFLAGS << " -framework Carbon " # Give it a name extension_name =3D 'raliasfile' # The destination dir_config(extension_name) # Do the work create_makefile(extension_name) else puts "This Ruby extension needs MacOS X 10.4+" end ------------------------------------------------------------------------=20= --------------------------------------------= |