From patchwork Mon Sep 5 18:50:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Ada,Darwin] Adjust architecture for built shared libs. Date: Mon, 05 Sep 2011 08:50:38 -0000 From: IainS X-Patchwork-Id: 113426 Message-Id: <9D22B279-0617-448B-A074-68508138DB86@sandoe-acoustics.co.uk> To: GCC Patches Cc: Mike Stump , Arnaud Charlet 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