This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[Patch, Libjava] modify libgcc spec rather than lib.
- From: IainS <developer at sandoe-acoustics dot co dot uk>
- To: java-patches at gcc dot gnu dot org
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, Andrew Haley <aph at redhat dot com>
- Date: Wed, 18 Aug 2010 10:34:59 +0100
- Subject: [Patch, Libjava] modify libgcc spec rather than lib.
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?
Iain
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