From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26646 invoked by alias); 10 Jun 2008 19:59:21 -0000 Received: (qmail 26627 invoked by uid 22791); 10 Jun 2008 19:59:20 -0000 X-Spam-Check-By: sourceware.org Received: from merkur.ins.uni-bonn.de (HELO merkur.ins.uni-bonn.de) (131.220.223.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 19:58:54 +0000 Received: from ins.uni-bonn.de (gibraltar [192.168.193.254]) by merkur.ins.uni-bonn.de (Postfix) with ESMTP id D8262400009F3; Tue, 10 Jun 2008 21:58:51 +0200 (CEST) Date: Tue, 10 Jun 2008 19:59:00 -0000 From: Ralf Wildenhues To: IainS Cc: GCC Development , "fortran@gcc.gnu.org List" Subject: Re: [RFC, Patch, gfortran] make -static-libgfortran work on darwin. Message-ID: <20080610195850.GH1722@ins.uni-bonn.de> Mail-Followup-To: Ralf Wildenhues , IainS , GCC Development , "fortran@gcc.gnu.org List" References: <3D6964FD-6DF0-4F83-9932-6945316CFBF5@gmail.com> <20080610190632.GF1722@ins.uni-bonn.de> <98926BA1-55FA-4204-BC7E-79E992097812@sandoe-acoustics.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98926BA1-55FA-4204-BC7E-79E992097812@sandoe-acoustics.co.uk> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00261.txt.bz2 * IainS wrote on Tue, Jun 10, 2008 at 09:42:29PM CEST: > On 10 Jun 2008, at 20:06, Ralf Wildenhues wrote: > >> Can the driver use path/to/libgfortran.a instead of '-Lpath/to >> -lgfortran' to avoid being hindered by missing -Bstatic/-Bdynamic? > > this doesn't appear to work. [I've unset DYLD_LIBRARY_PATH in the > following] > > ./dst-powerpc/usr/bin/gfortran-4.4.0 helloi.F90 /Volumes/UFSScratch/ > GCC/gcc-44-build/dst-powerpc/usr/lib/gcc/powerpc-apple-darwin8/4.4.0/ > libgfortran.a -o helloif Well, what I meant was that on Dargin, gfortran could pass the argument path/to/libgfortran.a to collect2, instead of passing -Bstatic -lgfortran -Bdynamic or the like, not that you should pass it on the command line. > we could campaign for a different linker on OSX/Darwin I guess... What's the problem with just using the shared library? (Yeah, I knew that question was naive ... but hey, it works ;-) >> Independently, does anybody know whether odcctools is dead (homepage >> seems to be down ATM)? >> > focus=7173> > > macports does install this; although it doesn't understand m64 mach-o > (at least objdump doesn't) Bummer. > The difficulty becomes that one cannot supply something that is > compatible with the vendor's standard installation. Did you mean "incompatible" here? > We start to require that the end user has administration rights to > install into /usr simply in order to run a program? I'm not sure whether I understand this comment. Isn't the link-time location of a shared library added to the search path anyway? (My experience with darwin is quite limited, so my memory may serve me wrong here.) Cheers, Ralf