bug-libtool
[Top][All Lists]
Advanced

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

Re: Relinking problem


From: Gary V. Vaughan
Subject: Re: Relinking problem
Date: Thu, 09 Oct 2003 11:31:58 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

Nick Hudson wrote:
 > The pathname passed with the rpath argument has to match the install
pathname. This is easily broken with a trailing '/' mismatch or any non-
canonical pathname.

If anyone has any bright ideas on a solution I'd be grateful. My first
thought was to do the

        absdir=`cd "$dir" && pwd`

dance for both pathnames, but I'm not sure they are guaranteed to exist.

The install path may be a staging directory and the rpath could mention a directory that doesn't exist right now: the rpath would need to be canonicalized manually... remove /dir/.. pairs, eliminate multiple or trailing slashes etc. This makes it easy to canonicalize rpath immediately for storage in the pseudo library, rather than on every comparison.

In spite of the fact that the install directory needs to exist, for the best chance of a match in the face of symbolic links, it would probably be best to canonicalize the install path using the same algorithm.

Feel free to use a shell function, autoconf is using them now so there is no reason for libtool to resist. Infact, converting ltmain.in to use shell functions might untangle the spaghetti somewhat!

Cheers,
        Gary.
--
  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/





reply via email to

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