printing exceptions?

Alexandre Oliva aoliva@redhat.com
Wed Mar 6 14:21:00 GMT 2002


On Mar  6, 2002, Tom Tromey <tromey@redhat.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> The solution to make sure pthread is always linked in
Alexandre> before libc would be to explicitly link -lpthread before
Alexandre> any other library (even GCJ-internal ones, even if it is
Alexandre> going to be duplicated afterwards).

> Is there something definitely wrong with just changing --tag=CXX to
> --tag=CC?

Yes.  You won't get the program linked with the shared libgcc if you
change the tag.  CC doesn't link with shared libgcc, CXX does.

> Otherwise won't we need to link against -lpthread twice?  E.g.:

>     gij_LDADD = $(THREADLIBS) libgcj.la $(GCLIBS) $(THREADLIBS) [ ... ]

> That seems ugly.

Actually, I was thinking of libgcj.la being linked with $(THREADLIBS)
first, which would solve the problem just the same.  Unless gij is
linked with some other library that would bring libc in first.

-- 
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                Professional serial bug killer



More information about the Java mailing list