bug-automake
[Top][All Lists]
Advanced

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

Convenience libraries do not need $(LIBS)


From: Christian Cornelssen
Subject: Convenience libraries do not need $(LIBS)
Date: Sat, 22 Mar 2003 04:17:59 +0100 (CET)

Hello,

when building noinst_LTLIBRARIES, a.k.a. libtool convenience libraries
(which are ar-files), Automake adds $(LIBS) to the link line.  This is
useless and can break things, particularly if $(LIBS) refers to a
static library.  In such a case, the static library given by $(LIBS)
is included in all libtool convenience libs, and if several
convenience libs are linked together to form a shared library, the
linker complains about symbol collisions.

See e.g. the posting and its follow-ups at
http://www.cdc.informatik.tu-darmstadt.de/pipermail/lidia/2003-March/000611.html

There is no easy workaround other than to clear LIBS in a Makefile.am
which inhibits building anything other than convenience libs.

Suggestions?

Regards,

Christian Cornelssen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]