automake
[Top][All Lists]
Advanced

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

Re: Library dependencies & make install


From: Sander Niemeijer
Subject: Re: Library dependencies & make install
Date: Mon, 19 Jan 2004 12:18:30 +0100

I second this. With our toolbox containing both modules and shared libraries we have stumbled upon this exact same problem. The modules needed to be linked against a shared library but automake was installing them before the shared library (which resulted in either linking against old libraries that were already installed, or in a linking failure). Our current solution is to link the .o files of the shared libraries in the modules via an internal library (we had to create an extra noinst_LTLIBRARIES target for this), but this results in a lot of big module files. I would therefore really welcome it if automake would gain support for installing libtool libraries in the appropriate order.

Regards,
Sander Niemeijer

On donderdag, jan 15, 2004, at 21:03 Europe/Amsterdam, Bob Friesenhahn wrote:

I am using Automake 1.8 with libtool.  Automake is doing a good job at
building libraries in a correct order based on dependencies (or I
could just be lucky) but 'make install' is not paying any attention to
library dependencies.  It appears that libraries are installed in the
same order as specified by lib_LTLIBRARIES.  If the ordering of
lib_LTLIBRARIES does not jive with the library dependency order, then
libtool fails to re-link the library because some libraries it depends
are not installed yet.  Even worse, it may appear that installation is
successful, but some of the libraries are accidentally linked with
older versions of the libraries which were already installed.

It seems to me that Automake should compute an optimum library
installation order based on the specified libtool library (.la)
dependencies.  This would help ensure that installation errors do not
occur due to some hap-hazard lib_LTLIBRARIES list order (e.g. they
could be in alphabetical order).

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen








reply via email to

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