[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Static to dynamic lib



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]