[Distutils] freebsd .a files
John J. Lee
phrxy@csv.warwick.ac.uk
Fri Jan 26 16:38:34 2001
On Thu, 25 Jan 2001, M.-A. Lemburg wrote:
> Robin Becker wrote:
> >
> > In article <3A705090.BFA90C16@lemburg.com>, M.-A. Lemburg
> > <mal@lemburg.com> writes
> > ....
> > >
> > >Ah, so you do want to link using the static lib ? This should
> > >be possible by placing the 'libgd.a' into the objects option:
> > >
> > > objects = ['libgd.a']
> > >
> > OK that's nice, any idea how to create .a (win32 .lib) files using
> > distutils. Even my .a files have to be rebuilt.
>
> I don't know how well it works, but the build_clib command
> is supposed to support this. The PIL example in the distutils
> distribution makes use of this command, AFAIR.
[...]
I think I used
libraries = [blah blah]
but that was for shared libraries, and I can't remember what you put in
the list. Look in the subdirectory in the source (there's only one) in
build_clib.py or something similar. The source is extremely readable.
John