From: Jeremy Hinegardner Date: 2009-09-05T10:24:39+09:00 Subject: Re: OSX -flat_namespace issues show up in hitimes, nokogiri and amalgalite On Wed, Aug 26, 2009 at 10:30:49PM +0900, Michal Suchanek wrote: > 2009/8/24 Michal Suchanek : > > Hello > > > > Twolevel namespace is used for quite some time in fink. It 's one of > > the remaining build system adjustments in recent ruby. > > > > Until now there was nothing I could point at that breaks with flat > > namespace but twolevel namespace is the recommended linking on OS X > > since some version like 10.2 or 10.3 and it does not seem to break > > anything. > > > > Note the -Wl prefix which allows building extensions that use libtool. > > > > Thanks > > > > Michal > > > > --- configure.in ?? ?? ?? ??2007-04-18 12:49:43.000000000 +0200 > > +++ configure.in ?? ?? ?? ??2007-04-19 14:23:04.000000000 +0200 > > @@ -1052,7 +1052,7 @@ > > ?? ?? ?? ??rhapsody*) ?? ?? ??: ${LDSHARED='cc -dynamic -bundle -undefined suppress'} > > ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??: ${LDFLAGS=""} > > ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??rb_cv_dlopen=yes ;; > > - ?? ?? ?? darwin*) ?? ?? ?? ??: ${LDSHARED='cc -dynamic -bundle -undefined > > suppress -flat_namespace'} > > + ?? ?? ?? darwin*) ?? ?? ?? ??: ${LDSHARED='cc -dynamic -bundle > > -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,sup > > press'} > > ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??: ${LDFLAGS=""} > > ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??: ${LIBPATHENV=DYLD_LIBRARY_PATH} > > ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??rb_cv_dlopen=yes ;; > > > > > > It should get fixed in 1.8.8 hopefully. > > It was rejected for earlier versions for compatibility reasons. > > See http://redmine.ruby-lang.org/issues/show/1991 Yup, I saw the thread on ruby-core. thanks. -jeremy -- ======================================================================== Jeremy Hinegardner jeremy@hinegardner.org