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