automake
[Top][All Lists]
Advanced

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

libtool relink problems with multiple libtool libraries


From: J.T. Conklin
Subject: libtool relink problems with multiple libtool libraries
Date: Thu, 29 Jul 2004 07:50:32 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix)

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




reply via email to

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