On Mar 18, 2000, Alexandre Oliva <[EMAIL PROTECTED]> wrote:

> On Mar 17, 2000, "Alan L. Batongbacal" <[EMAIL PROTECTED]> wrote:

>> Note the two "-lz" occurrences (a bug in configure.in, maybe?

> Nope, that would be a bug in libtool, if there's any bug at all.

There was a bug, after all.  

Here's a fix.  I'll try to get it into the libtool CVS tree and update
Kaffe's view of libtool afterwards.

Please let me know if it fixes the problem for you.

Index: ltmain.sh
===================================================================
RCS file: /cvs/kaffe/kaffe/ltmain.sh,v
retrieving revision 1.33
diff -u -r1.33 ltmain.sh
--- ltmain.sh	2000/02/25 02:28:35	1.33
+++ ltmain.sh	1999/12/10 19:03:28
@@ -1570,7 +1570,6 @@
 
 	if test $linkmode = prog && test $pass != link; then
 	  new_lib_search_path="$new_lib_search_path $ladir"
-	  deplibs="$lib $deplibs"
 
 	  linkalldeplibs=no
 	  if test "$link_all_deplibs" != no || test "$fast_install" != no || \
@@ -1596,6 +1595,8 @@
 	    esac
 	    tmp_libs="$tmp_libs $deplib"
 	  done
+
+	  deplibs="$lib $deplibs"
 	  continue
 	fi
 

-- 
Alexandre Oliva    Enjoy Guaran�, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

Reply via email to