beos-native port [Was: Re: changes to thread locking layer]

Alexandre Oliva kaffe@rufus.w3.org
21 Mar 2000 09:41:41 -0300


--=-=-=

On Mar 18, 2000, Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:

> On Mar 17, 2000, "Alan L. Batongbacal" <alanlb@rrinc.com> 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.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=dlopen-pre-deplibs.patch

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
 

--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable


--=20
Alexandre Oliva    Enjoy Guaran=E1, 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

--=-=-=--