From: Stefan Arentz Date: 2002-12-11T12:16:13+09:00 Subject: Re: mac os x eruby FUJIMOTO Hisakuni writes: > At Wed, 11 Dec 2002 09:33:50 +0900, > Gennady F. Bystritsky wrote: > > Mac OS X 10.2 (Jaguar) does include libruby and it is OK, as mod_ruby uses > > Really? Please tell me which package in Jaguar include libruby. I > could not find "libruby(.a|.dylib)" in packages which are > contained in Jaguar and some updates. > > Therefor, RubyCocoa 0.3 binary package which I distribute include > "libruby.a". Maybe a ruby package of FINK include libruby. I > don't know detail about FINK because I do not install it. I have made a ruby port for darwinports (www.opendarwin.org) that solves the link issues. You can get the port description from: http://stuff.sateh.com/dports/ruby.tgz It basically comes down to these patches: --- configure.org Mon Dec 9 21:27:33 2002 +++ configure Mon Dec 9 21:28:39 2002 @@ -5054,7 +5054,7 @@ darwin*) LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).$(MAJOR).$(MINOR).$(TEENY).dylib' LIBRUBY_LDSHARED='cc -dynamiclib -undefined suppress -flat_namespace' - LIBRUBY_DLDFLAGS='-install_name lib$(RUBY_INSTALL_NAME).dylib -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibili ty_version $(MAJOR).$(MINOR)' + LIBRUBY_DLDFLAGS='-install_name $(prefix)/lib/lib$(RUBY_INSTALL_NAME).dylib -current_version $(MAJOR).$(MINOR).$(TEENY ) -compatibility_version $(MAJOR).$(MINOR)' LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_INSTALL_NAME).dylib' ;; *) @@ -5076,7 +5076,7 @@ CFLAGS="$CFLAGS -pipe -no-precomp" ;; darwin*) - CFLAGS="$CFLAGS -pipe -no-precomp" + CFLAGS="$CFLAGS -pipe -traditional-cpp" ;; os2_emx) CFLAGS="$CFLAGS -DOS2" Together with the --enable-shared configure option. S.