This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
libtool relink problems with multiple libtool libraries
- From: jtc at acorntoolworks dot com (J.T. Conklin)
- To: automake at gnu dot org
- Date: Thu, 29 Jul 2004 07:50:32 -0700
- Subject: libtool relink problems with multiple libtool libraries
- Reply-to: jtc at acorntoolworks dot com
I have a Makefile.am that builds multiple libtool libraries, something
like this:
lib_LTLIBRARIES = libFOO.la
libFOO_la_CPPFLAGS = ...
libFOO_la_SOURCES = ...
libFOO_la_LIBADD = libBAR.la libBAZ.la
lib_LTLIBARIES += libBAR.la
libBAR_la_CPPFLAGS = ...
libBAR_la_SOURCES = ...
libBAR_la_LIBADD = libBAZ.la
lib_LTLIBAZIES += libBAZ.la
libBAZ_la_CPPFLAGS = ...
libBAZ_la_SOURCES = ...
Everything builds fine, but a make install fails with a libtool first
complaining that it has to relink libFOO.la, which fails because the
linker can't find "-lBAR" -- probably because the BAR and BAZ
libraries haven't been installed yet.
Is there any way to describe this install dependency in automake? Is
reordering the libraries in the Makefile.am necessary and/or sufficent?
Thanks,
--jtc
--
J.T. Conklin