[Top][All Lists]

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

Re: cannot relink when installing to a DESTDIR

From: Brian May
Subject: Re: cannot relink when installing to a DESTDIR
Date: 08 Jul 2001 15:11:06 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (GTK)

>>>>> "Thayne" == Thayne Harbaugh <address@hidden> writes:

    Thayne> This is incorrect in that the building of lib_add should
    Thayne> be reversed as such:

    Thayne> test -d "$ladir/.libs" && add_dir="-L$ladir/.libs $add_dir"

    Thayne> It's also not very elegant.  It would be nice if there was
    Thayne> a command line switch that notifies libtool of installing
    Thayne> to a DESTDIR.

I am not sure if the order matters, does it?

Be warned though: a side affect of the above fix exists; if you have
an old version of the library in /usr/lib (a system directory, gets
searched first), then that will get used instead (I don't think your
fix helps this, but I am willing to stand corrected).

It always use to be possible to build a package, and any old libraries
in /usr/lib were ignored.

So, for my Debian package of Heimdal, I have build-conflicts:
heimdal-dev, to ensure that the correct library gets used. A nasty
hack to a nasty problem, but the best I could come up with.

Ideally, on Linux, the -L /dir/to/lib -lxyz syntax should get replaced
with /dir/to/lib/libxyz.so, but this might break on other platforms.

Brian May <address@hidden>

reply via email to

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