[PATCH] for libtool: link: warning: ... sems to be moved

Archimedes Submerged archimerged at gmail.com
Sat May 13 16:55:50 EDT 2006


On FC4, libtool frequently gives a warning during compilation.  I determined
the cause.
It seems that lt_sys_lib_search_path_spec has several /../'s.  I can't find
out where that
value comes from, but the following change will eliminate the problem.  I
also don't know
where ltmain.sh came from, since svn says its not under revision control.

--- ltmain.sh~    2005-11-22 08:18:02.000000000 -0500
+++ ltmain.sh    2006-05-13 15:52:13.000000000 -0400
@@ -2775,17 +2775,12 @@
           *.la)
         dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
         test "X$dir" = "X$deplib" && dir="."
-        # We need an absolute path.
-        case $dir in
-        [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
-        *)
-          absdir=`cd "$dir" && pwd`
-          if test -z "$absdir"; then
-            $echo "$modename: warning: cannot determine absolute directory
name of \`$dir'" 1>&2
-            absdir="$dir"
-          fi
-          ;;
-        esac
+        # We need an absolute path with no /../'s.
+        absdir=`cd "$dir" && pwd`
+        if test -z "$absdir"; then
+          $echo "$modename: warning: cannot determine absolute directory
name of \`$dir'" 1>&2
+          absdir="$dir"
+        fi
         if grep "^installed=no" $deplib > /dev/null; then
           path="$absdir/$objdir"
         else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20060513/0e50d867/attachment.html


More information about the gnucash-devel mailing list