Next configuration patch for *-*-freebsd

Bryce McKinlay bryce@waitaki.otago.ac.nz
Tue May 8 21:06:00 GMT 2001


Loren James Rittle wrote:

> Index: libgcj.spec.in
> ===================================================================
> RCS file: /cvs/gcc/egcs/libjava/libgcj.spec.in,v
> retrieving revision 1.16
> diff -c -r1.16 libgcj.spec.in
> *** libgcj.spec.in      2001/05/01 17:45:08     1.16
> --- libgcj.spec.in      2001/05/07 22:45:34
> ***************
> *** 4,10 ****
>   # to link with libgcj.
>   #
>   %rename lib liborig
> ! *lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(liborig)
>
>   *jc1: @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@
>
> --- 4,10 ----
>   # to link with libgcj.
>   #
>   %rename lib liborig
> ! *lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) @LIBORIG@
>
>   *jc1: @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@

I dont think this (messing with liborig) part is correct. It seems to me from looking at
gcc/config/freebsd.h that the compiler should already be using -lc_r in the -pthread
case, so wouldn't we be better off figuring out why -lc is being used rather than working
around it in libgcj.spec?

Maybe the "!shared" in freebsd.h's LIB_SPEC has something to do with it?

regards

  [ bryce ]




More information about the Java-patches mailing list