From patchwork Mon Sep 5 18:50:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 113426 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 00B36B6F7D for ; Tue, 6 Sep 2011 04:50:57 +1000 (EST) Received: (qmail 25737 invoked by alias); 5 Sep 2011 18:50:55 -0000 Received: (qmail 25716 invoked by uid 22791); 5 Sep 2011 18:50:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from c2bthomr13.btconnect.com (HELO mail.btconnect.com) (213.123.20.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Sep 2011 18:50:41 +0000 Received: from host81-138-1-83.in-addr.btopenworld.com (EHLO thor.office) ([81.138.1.83]) by c2bthomr13.btconnect.com with ESMTP id EFY97981; Mon, 05 Sep 2011 19:50:39 +0100 (BST) Message-Id: <9D22B279-0617-448B-A074-68508138DB86@sandoe-acoustics.co.uk> From: Iain Sandoe To: GCC Patches Mime-Version: 1.0 (Apple Message framework v936) Subject: [Patch, Ada, Darwin] Adjust architecture for built shared libs. Date: Mon, 5 Sep 2011 19:50:38 +0100 Cc: Mike Stump , Arnaud Charlet X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.4E6519DB.00BD, actions=tag X-Junkmail-Premium-Raw: score=8/50, refid=2.7.2:2011.9.5.175118:17:8.510, ip=81.138.1.83, rules=__HAS_MSGID, __SANE_MSGID, __MSGID_APPLEMAIL, __TO_MALFORMED_2, __CT, __CTYPE_HAS_BOUNDARY, __CTYPE_MULTIPART, CTYPE_MULTIPART_NO_QUOTE, __CTYPE_MULTIPART_MIXED, __MIME_VERSION, __MIME_VERSION_APPLEMAIL, __MULTIPLE_RCPTS_CC_X2, __HAS_X_MAILER, __X_MAILER_APPLEMAIL, TXT_ATTACHED, __STOCK_PHRASE_7, BODY_SIZE_4000_4999, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, HTML_50_70, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, __USER_AGENT_APPLEMAIL, RDNS_SUSP, BODY_SIZE_7000_LESS, NO_URI_FOUND, MIME_TEXT_ONLY_MP_MIXED, MULTIPLE_RCPTS X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0205.4E6519FF.00E4, ss=1, fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=multiengine 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 ld needs to be passed the correct arch flag when building shared libs. This means that the multi-libs built for 4.6.x and trunk contain junk (essentially all the input objects are rejected as having the wrong arch). The attached corrects this. OK for trunk and 4.6 (since this is a wrong-code issue)? Iain P.S. Is there any salient justification for the use of the anachronistic "-Wl, -flat_namespace" in Ada ? ... ... if not then I'll forward a patch to remove this ... IMO it causes more trouble than it solves ... ... and should be applied explicitly by the User in circumstances that require it. a-intnam.ads