This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: rpath command?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]