From patchwork Wed Aug 18 09:34:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 62016 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 4C4BEB70DE for ; Wed, 18 Aug 2010 19:35:17 +1000 (EST) Received: (qmail 25224 invoked by alias); 18 Aug 2010 09:35:13 -0000 Received: (qmail 25206 invoked by uid 22791); 18 Aug 2010 09:35:11 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from c2beaomr09.btconnect.com (HELO c2beaomr09.btconnect.com) (213.123.26.187) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Aug 2010 09:35:06 +0000 Received: from thor.office (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by c2beaomr09.btconnect.com with ESMTP id FEN56955; Wed, 18 Aug 2010 10:35:00 +0100 (BST) X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=0001.0A0B0301.4C6BA944.01D9, actions=tag Message-Id: <5154B65D-16F5-410C-8E38-23D8CCA50DC7@sandoe-acoustics.co.uk> From: IainS To: java-patches@gcc.gnu.org Mime-Version: 1.0 (Apple Message framework v936) Subject: [Patch, Libjava] modify libgcc spec rather than lib. Date: Wed, 18 Aug 2010 10:34:59 +0100 Cc: gcc patches , Andrew Haley X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 @LIBICONV@ @GCSPEC@ @THREADSPEC@ @SYSTEMSPEC@ @LIBSTDCXXSPEC@ @ZLIBSPEC@ %(liborig) *jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @CHECKREFSPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ @BACKTRACESPEC@ @IEEESPEC@ @ATOMICSPEC@ @LIBGCJ_BC_SPEC@ -fkeep-inline-functions 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@