[fluxus] MacOS X

Artem Baguinski femistofel at gmail.com
Sat Feb 25 10:44:27 PST 2006


On 25 Feb 2006, at 17:15, Artem Baguinski wrote:

> > for lib in usrlibs:
> >          Source += ["/usr/local/lib/lib"+lib+".a"]
> > for lib in optlibs:
> >          Source += ["/opt/local/lib/lib"+lib+".a"]
>
> according to the docs of dawin's 'ld' -l by default searches for  
> static libraries. only in the presense of -dynamic does it search  
> for dynamic libraries.
>
> but at the moment scons calls gcc for linking and gcc has other  
> defaults. I'll see what i can do about it (either force scons use  
> ld on darwin or force gcc to link statically).

the only way i managed to do that automatically is using  
"glibtool" (darwin's copy of GNU libtool). libtool supports "-static"  
flag which means "prefer static libraries, use dynamic if static not  
found" (this way it links with dynamic versions of -lm and -lz from / 
usr/lib).

But since scons is supposed to be a substitute to everything auto*  
including libtool, I'll read its documentation further hoping to find  
the magic switch. Or i'll adjust Dan's method.

> > env.Append( LINKFLAGS = "-framework OpenGL -framework glut - 
> framework CoreAudio" )
>
> You probably have noticed that the bundle tool supports FRAMEWORKS  
> which is similar to LIBS - very handy ;-)

oh, it isn't the bundle tool, it's recent scons that supports  
FRAMEWORKS.



More information about the Fluxus mailing list