[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setup automake to build dynamic library (.so) linking several other
Re: Setup automake to build dynamic library (.so) linking several other libraries statically (.a archive)
Mon, 14 Jan 2008 22:16:28 +0100
* tomoyo255 wrote on Mon, Jan 14, 2008 at 05:13:48PM CET:
> In opposition to what I did for every pieces of the whole thing, I need
> the final library to be dynamic (a .so file), but with all former pieces
> inconditionnally statically linked inside it. In other words, I want to
> produce a single big shared object with everything inside (besides standard
> libraries however, but should be an issue I assume).
You want to use convenience archives for the pieces that end up as a
whole in the shared library. "*.la" files come in several flavors:
shared (+static) libraries (lib_LTLIBRARIES in Automake lingo),
static only libraries (lib_LTLIBRARIES, with libfoo_la_LDFLAGS = -static),
convenience archives (noinst_LTLIBRARIES).
Both the Automake and the Libtool manual have more information:
Hope that helps.