As has been noted before, the &quot;seems to be moved&quot; warning is a false positive when $absdir contains some /../'s,<br>while the library name recorded in the .la file does not have those.&nbsp; This patch will avoid printing the warning if both
<br>directories give the same result from `cd $dir &amp;&amp; pwd`.&nbsp; 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 &amp;&amp; pwd` to find the cannonical name of
<br>a directory because the result will be a specific volume instead of /usr/lib or whatever.&nbsp; Some systems maintain<br>multiple duplicate read-only volumes with copies of /usr/lib, so that 'cd /usr/lib &amp;&amp; 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&nbsp;&nbsp; &nbsp;2005-11-22 08:18:02.000000000 -0500<br>+++ ltmain.sh&nbsp;&nbsp; &nbsp;2006-05-13 18:15:15.000000000 -0400<br>@@ -2795,7 +2795,11 @@<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; exit $EXIT_FAILURE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; if test &quot;$absdir&quot; != &quot;$libdir&quot;; then<br>-&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; $echo &quot;$modename: warning: \`$deplib' seems to be moved&quot; 1&gt;&amp;2<br>+&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; absdir2=`cd &quot;$absdir&quot; &amp;&amp; pwd || echo &quot;$absdir&quot;`
<br>+&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; libdir2=`cd &quot;$libdir&quot; &amp;&amp; pwd || echo &quot;$libdir&quot;`<br>+&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; if test &quot;$absdir2&quot; != &quot;$libdir2&quot;; then<br>+&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $echo &quot;$modename: warning: \`$deplib' seems to be moved from \`$libdir' to \`$absdir'&quot; 1&gt;&amp;2
<br>+&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; fi<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; path=&quot;$absdir&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;fi<br><br>