From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9678 invoked by alias); 12 Aug 2010 21:09:55 -0000 Received: (qmail 9658 invoked by uid 22791); 12 Aug 2010 21:09:53 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,FAKE_REPLY_C,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_IB X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mail.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 12 Aug 2010 21:09:50 +0000 Received: (qmail invoked by alias); 12 Aug 2010 21:09:47 -0000 Received: from xdsl-89-0-177-80.netcologne.de (EHLO localhost.localdomain) [89.0.177.80] by mail.gmx.net (mp025) with SMTP; 12 Aug 2010 23:09:47 +0200 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1Ojf22-0001S9-5g; Thu, 12 Aug 2010 23:09:46 +0200 Date: Thu, 12 Aug 2010 21:34:00 -0000 From: Ralf Wildenhues To: Andrew Pinski , Jack Howarth Cc: Richard Henderson , gcc-patches@gcc.gnu.org, iains@gcc.gnu.org, mikestump@comcast.net Subject: Re: [PATCH] Avoid -lm and -lpthread in libjava on darwin Message-ID: <20100812210945.GA5561@gmx.de> Mail-Followup-To: Ralf Wildenhues , Andrew Pinski , Jack Howarth , Richard Henderson , gcc-patches@gcc.gnu.org, iains@gcc.gnu.org, mikestump@comcast.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100812182430.GB26124@bromo.med.uc.edu> User-Agent: Mutt/1.5.20 (2010-04-22) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00949.txt.bz2 * Andrew Pinski wrote on Thu, Aug 12, 2010 at 08:23:13PM CEST: > On Thu, Aug 12, 2010 at 11:20 AM, Richard Henderson wrote: > > Is this patch necessary with the remove-outfile patch in place? > > Yes because libtool calls ld directly for libjava. I wish it did not > but it does. * Jack Howarth wrote on Thu, Aug 12, 2010 at 08:24:30PM CEST: > The remove-outfile patch is necessary to make sure that the gcc > compilers don't shift libSystem forward in the linkage and > disrupt the logic behind libgcc_ext when -ldl, -lm or -lpthread > is passed to the compiler. The libjava patch covers the hardcoding > of -lpthread and -lm into the linker flags that are passed via > libtool directly to the linker. So do I understand correctly that this ought to be fixed in libtool? Is the requirement to have libSystem last one that is specific to GCC or common to all software built with GCC? Thanks, Ralf