[Top][All Lists]

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

An annoying libtool-1.4x bug + patch

From: Peter Breitenlohner
Subject: An annoying libtool-1.4x bug + patch
Date: Mon, 21 Oct 2002 16:21:37 +0200 (CEST)


I am sure you are aware of the following automake+libtool problem:

If a package contains two (shared) libtool libraries, e.g., libfoo and
libbar with libfoo depending on libbar then
        make DESTDIR=some_where install
will fail. I know that this problem isn't easy to solve, I only hope it will
be addressed in the not too far future.

BUT: This problem has an extremely bad side effect (BUG). Before libtool
attempts to 'relink' libfoo, the old uninstalled libfoo.so.x.y.z is renamed
into (saved as) libfoo.so.x.y.zU. When the relink fails, the code to restore
the uninstalled library under its previous name never gets executed.
Consequently a subsequent attempt to
        make DESTDIR= install
equally fails. This side effect is really annoying and can easily be
avoided as per the attached patch.

I could only test this patch with bash, but I assume it ought to work with
every shell suitable for libtool.

Peter Breitenlohner <address@hidden>

Attachment: libtool-patch
Description: Text document

reply via email to

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