[Top][All Lists]

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

Re: rpath command?

From: Alexandre Oliva
Subject: Re: rpath command?
Date: 27 Nov 2000 12:12:27 -0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

On Nov 27, 2000, Steve Robbins <address@hidden> wrote:

> What I would like to do is:

>       lib_LTLIBRARIES =

>       libfoo_la_LIBADD = \
>               $(top_builddir)/a/ \
>               $(top_builddir)/b/ \
>               $(top_builddir)/c/ \
>               $(top_builddir)/d/ 

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
Red Hat GCC Developer                  address@hidden,}
CS PhD student at IC-Unicamp        address@hidden,}
Free Software Evangelist    *Please* write to mailing lists, not to me

reply via email to

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