On Fri, Aug 17, 2007 at 01:17:13AM +0200, Jean-Marc Lasgouttes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> >> I did not find a place where his variable is instantiated, actually.
> >> How is this done?
> >
> > Thesaurus.cpp:121
> 
> I meant the place in the object code.
> 
> I read a bit about flat namespace (see error message)and if the
> following page makes sense to you, we may have a solution:
> http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_7.html#//apple_ref/doc/uid/TP40002850-BCIHJBBF

Does this mean, by default Mac's dylibs behave at resolution time rather
like a .dll and not as a .so?

> The complete guide starts here: 
> http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40002847-TPXREF101
> 
> All I can say is that libtool does pass the -flat_namespace option to
> g++ when linking. And also -undefined suppress, which is supposed to
> help.

I read this as -flat_namespace will change the behaviour to the .so
one. That'd be the only dynamic behavior we currently can use due to the
interdependencies. So if this -flat_namespace is given yet does not work
we might be out of luck.

Otoh, as long as static linking works, I am not too unhappy, it just
means we do not better than before.

Andre'

Reply via email to