This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Next configuration patch for *-*-freebsd
- To: rittle at rsch dot comm dot mot dot com
- Subject: Re: Next configuration patch for *-*-freebsd
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Wed, 09 May 2001 16:07:02 +1200
- CC: java-patches at gcc dot gnu dot org
- References: <200105080911.f489Bsg45143@latour.rsch.comm.mot.com>
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 ]