Static to dynamic lib

Hans de Goede j.w.r.degoede at hhs.nl
Wed Jun 25 21:20:04 UTC 2008


Paul wrote:
> Hi,
> 
> I've been looking at getting the portable .NET stuff into fedora.
> However, the treecc package only builds a .a lib. Is there a way to
> convert that a dynamic lib?
> 

There are a couple, if it uses libtool + automake, the .am Makefiles can be 
patched. If it uses a plain makefile, that can be patched.

If it uses something nasty (like autoxxx without libtool) you can add -fPIC to 
the CFLAGS, and then just use the .o files build for a final manual linking 
into a .so file, you can get a list of the .o files to put in the .so from the 
.a file using ar (works just like tar).

Do you have any idea how stable the ABI of the treecc .a lib is?

Regards,

Hans




More information about the fedora-devel-list mailing list