From: Michal Suchanek Date: 2009-08-26T22:30:49+09:00 Subject: Re: OSX -flat_namespace issues show up in hitimes, nokogiri and amalgalite 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 Thanks Michal