MacArthur, Ian (SELEX GALILEO, UK) wrote: > However, the other day I was trawling through some Makefiles from a > project on OSX and the guy that wrote them was using some trick linker > option (which I can't now find, or remember...) to make it pick the > static archive when the "-lfoo" option was passed... > > Anybody else know what this is? Is it an OSX specific tweak or is it > standard? Can we use it in fltk-config when --ldstaticflags is set?
I think that it's GNU/gcc (linker) specific: -Bstatic and -Bdynamic, but I didn't look it up in the gcc docs. However, I remember that I have seen it before as well. From the CMake docs (look for LINK_SEARCH_END_STATIC under "Properties on targets"): "Some linkers support switches such as -Bstatic and -Bdynamic to determine whether to use staticor shared libraries for -lXXX options. CMake uses these options to set the link type for libraries whose full paths are not known or (in some cases) are in implicit link directories for the platform. [...]" It's obviously not standard, and I think that we'd be better off using the full lib*.a name, but maybe someone else knows better. BTW.: I don't think that I can find the time to look at this issue much more this week, so if someone else could look at the configure/fltk-config --ldstatic issue, this would probably help to decide if we can fix this in 1.1.10-rc2. Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
