This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: rpath command?
- To: Steve Robbins <steven dot robbins at videotron dot ca>
- Subject: Re: rpath command?
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 27 Nov 2000 12:12:27 -0200
- Cc: libtool at gnu dot org, GNU Automake List <automake at gnu dot org>
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- References: <Pine.LNX.4.21.0011270857200.23400-100000@riemann.nyongwa.montreal.qc.ca>
On Nov 27, 2000, Steve Robbins <steven.robbins@videotron.ca> 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