As has been noted before, the "seems to be moved" warning is a false positive when $absdir contains some /../'s,<br>while the library name recorded in the .la file does not have those. This patch will avoid printing the warning if both
<br>directories give the same result from `cd $dir && pwd`. It also prints more information about where the library seems<br>to have been moved from if it does print a warning.<br><br>Note that in the presence of an automounter, it is not valid to use `cd $dir && pwd` to find the cannonical name of
<br>a directory because the result will be a specific volume instead of /usr/lib or whatever. Some systems maintain<br>multiple duplicate read-only volumes with copies of /usr/lib, so that 'cd /usr/lib && pwd' does not always give
<br>the same answer.<br><br>See also:<br><a href="http://lists.gnu.org/archive/html/libtool/2004-03/msg00091.html">http://lists.gnu.org/archive/html/libtool/2004-03/msg00091.html</a><br><a href="http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01827.html">
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01827.html</a><br><br>--- /usr/share/libtool/ltmain.sh 2005-11-22 08:18:02.000000000 -0500<br>+++ ltmain.sh 2006-05-13 18:15:15.000000000 -0400<br>@@ -2795,7 +2795,11 @@<br>
exit $EXIT_FAILURE<br> fi<br> if test "$absdir" != "$libdir"; then<br>- $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2<br>+ absdir2=`cd "$absdir" && pwd || echo "$absdir"`
<br>+ libdir2=`cd "$libdir" && pwd || echo "$libdir"`<br>+ if test "$absdir2" != "$libdir2"; then<br>+ $echo "$modename: warning: \`$deplib' seems to be moved from \`$libdir' to \`$absdir'" 1>&2
<br>+ fi<br> fi<br> path="$absdir"<br> fi<br><br>