This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libtool, java woes
On Apr 9, 2001, Tom Tromey <tromey@redhat.com> wrote:
> The problems I'm seeing have nothing to do with -lpthread but instead
> the relative ordering of -lc and -lgcc_s. If -lc comes first, then my
> Java programs crash on exit. If -lgcc_s comes first, then they work.
Please try this patch:
Index: ltmain.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltmain.sh,v
retrieving revision 1.12
diff -u -p -r1.12 ltmain.sh
--- ltmain.sh 2001/03/22 06:48:31 1.12
+++ ltmain.sh 2001/04/09 18:13:41
@@ -1632,6 +1632,18 @@ EOF
if test $linkmode = lib; then
libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ pre_post_deps=
fi
deplibs=
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me