[Distutils] freebsd .a files

Robin Becker robin@jessikat.fsnet.co.uk
Fri Jan 26 18:20:02 2001


In article <Pine.SOL.4.30.0101262133140.4140-100000@mimosa.csv.warwick.a
c.uk>, John J. Lee <phrxy@csv.warwick.ac.uk> writes
>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
>
>
extra_objects=['libgd.a'] works for me, but I still don't know how to
define a clib and get it built as part of an extension.
-- 
Robin Becker