On Nov 27, 2000, Steve Robbins <[EMAIL PROTECTED]> wrote:
> What I would like to do is:
> lib_LTLIBRARIES = libfoo.la
> libfoo_la_LIBADD = \
> $(top_builddir)/a/adummy.la \
> $(top_builddir)/b/bdummy.la \
> $(top_builddir)/c/cdummy.la \
> $(top_builddir)/d/ddummy.la
The point is that this just can't be done portably. You need at least
one object file, for two reasons:
(i) libtool may fail if you link only libtool archives into another
libtool archive
(ii) automake wouldn't know which compiler/linker to use for the
library you're creating. Specifying one or more source files is
supposed to give automake a clue on which languages are being used in
the sub-libraries.
> Is it impossible to support building libraries out of ONLY other
> libraries?
Yes. It isn't portable. Some linkers just fail.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me