On Tue, 6 Dec 2005, Ralf Wildenhues wrote:

So I am at a loss as to why Automake fails to build ltdl/libltdlc.la
before attempting to use it.

FYI, a quick fix to the build-order problem is

  # Convince libltdl to be built before the library which needs it.
  $(LIBMAGICK): $(LIBLTDL)

but this feels wrong to me.  Automake should already know about this
dependency.

This problem existed before.  It may just have been hidden by the
default order in which the libraries were built -- I bet a parallel make
would've exposed it.

Previously $(LIBLTDL) was listed in lib_LTLIBRARIES and no-where else. This must have helped since 'gmake -j' never caused a failure.

I think you have to bite the apple and specify the library dependencies
manually:

in magick/Makefile.am, do this outside of any other Automake
conditionals:

if CONVENIENCE_LTDL
magick_libGraphicsMagick_la_DEPENDENCIES = $(LIBLTDL)
endif

Testing now ...

This is not nice, but it has the advantage of not being a hack, and
should make parallel build work.

I am testing the new hack now ... :-)

We will need to document such shortcomings/workarounds for libtool users.

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


Reply via email to