[Distutils] freebsd .a files
M.-A. Lemburg
mal@lemburg.com
Thu Jan 25 09:32:01 2001
Robin Becker wrote:
>
> How do I specify a static library. I have libraries=['gd'], but I don't
> seem to load symbols from libgd.a instead I have to use
> libraries=['libgd.a'] is that right?
No, you should use the first variant. The compiler will then either
take the correspopnding .so file or .a file with a preference for the
shared object file (at least that's what gcc does).
See distutils/ccompiler.py for details.
In general it is a better idea to link to shared libs since these
provide more flexibility on the user side.
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/