This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Libjava] modify libgcc spec rather than lib.
- From: Andrew Haley <aph at redhat dot com>
- To: IainS <developer at sandoe-acoustics dot co dot uk>
- Cc: java-patches at gcc dot gnu dot org, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 Aug 2010 10:44:55 +0100
- Subject: Re: [Patch, Libjava] modify libgcc spec rather than lib.
- References: <5154B65D-16F5-410C-8E38-23D8CCA50DC7@sandoe-acoustics.co.uk>
On 08/18/2010 10:34 AM, IainS wrote:
> While we're looking at library ordering,
>
> on darwin we use %G %L - rather than the more usual %L %G %L.
>
> It strikes me that the following spec would be cleaner for both cases,
> what do you think?
What's this for? Where has -lm gone?
Andrew.
>
> Index: libjava/libgcj.spec.in
> ===================================================================
> --- libjava/libgcj.spec.in (revision 163330)
> +++ libjava/libgcj.spec.in (working copy)
> @@ -6,7 +6,7 @@
> %rename startfile startfileorig
> *startfile: @THREADSTARTFILESPEC@ %(startfileorig)
>
> -%rename lib liborig
> -*lib: @LD_START_STATIC_SPEC@ @LIBGCJ_SPEC@ @LD_FINISH_STATIC_SPEC@ -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) @LIBSTDCXXSPEC@ %(liborig)
> +%rename libgcc liborig
> +*libgcc: @LD_START_STATIC_SPEC@ @LIBGCJ_SPEC@ @LD_FINISH_STATIC_SPEC@ @LIBICONV@ @GCSPEC@ @THREADSPEC@ @SYSTEMSPEC@ @LIBSTDCXXSPEC@ @ZLIBSPEC@ %(liborig)
>
> *jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @CHECKREFSPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ @BACKTRACESPEC@ @IEEESPEC@ @ATOMICSPEC@ @LIBGCJ_BC_SPEC@ -fkeep-inline-functions
>