From: Yvon Thoraval Date: 2006-09-01T14:43:36+09:00 Subject: Re: [MacOS X][ANN] RAliasFile Initial Release --Apple-Mail-9-541047564 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Le 30 ao=FBt 06 =E0 22:18, Austin Ziegler a =E9crit : > That won't work on my Mac, will it? (Checking.) Nope. My platform is > i686-darwin8.7.1. So unless you're *only* wanting this to work on > older Macs, you'll need to have /.*-darwin8.*/ (if darwin8 is the > right version; darwin may be the right choice). following a try-out of Lon Baker on <1DE858BB-9002-48E0-AACC-=20 DC37AD646FA2@speedymac.com> ([Rubycocoa-talk] mailing list ) changing =20= what u've suggested above is ok. best, Yvon only one line to change in ext/extconf.rb : change line 6 (just after "case RUBY_PLATFORM") to : when /.*-darwin8.*/ that's all to do )) ext/extconf.rb becomes : ---- ext/extconf.rb ---------------------------------------------------- #!/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 ------------------------------------------------------------------------ --Apple-Mail-9-541047564--