On Thursday 14 February 2008 15:25:40 Victor Lazzarini wrote: > I noticed that checkLibraryWithHeader(), when it returns successfully > adds the library to the overall environment. This is leading to extra > linking on OSX that is causing problems. For instance, csladspa.so > gets linked to libpng, but it does not use it. I would suggest to use > as before, just CheckHeader( ) for all dependencies that are not > for all SCons outputs. > > Is that OK. I have made the changes, will commit if everyone > agrees (tomorrow). Note that there is an autoadd parameter to CheckLibraryWithHeader which controls if the lib is added or not. Another way to avoid this is to set the linkflag -Wl,--as-needed. This flag will cause gcc to drop any unneded links. This is what I'm using for the debian packages. -- Felipe Sateler