From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26893 invoked by alias); 14 May 2003 15:23:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26855 invoked from network); 14 May 2003 15:23:40 -0000 Received: from unknown (HELO mail.speakeasy.net) (216.254.0.211) by sources.redhat.com with SMTP; 14 May 2003 15:23:40 -0000 Received: (qmail 3093 invoked from network); 14 May 2003 15:23:42 -0000 Received: from unknown (HELO jaymax.com) (jaymax@[66.93.45.209]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 14 May 2003 15:23:42 -0000 Message-ID: <3EC25F7E.E5B232F3@jaymax.com> Date: Wed, 14 May 2003 15:23:00 -0000 From: Joseph Maxwell X-Accept-Language: en,pdf MIME-Version: 1.0 To: Toon Moene CC: gcc-help@gcc.gnu.org Subject: Re: Makefile conversion needed, can't find lf2c References: <3EBFA9B4.B3CF6D5E@jaymax.com> <3EC01E5F.3010808@moene.indiv.nluug.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00106.txt.bz2 Thanks Toon, also had to replaced lf2c ( a cross compiler apparently ) with lg2c i.e. LDFLAGS= -lm -lg2c Thanks -- Joe -- Toon Moene wrote: > Joseph Maxwell wrote: > > > I am doing an installation of a program and have a relatively simple > > machine dependent Makefile for a Linux platform running fort77. However, > > I am using Freebsd w/ gcc-3.2.3. I am a novice with this compiler and > > related loaders. It seems that the loader is looking for a program file > > - lf2c > > [ /usr/libexec/elf/ld: cannot find -lf2c ] > > Could someone suggest changes to the Makefile to make it useable. > > If g77-3.2.3 is installed on FreeBSD along with gcc-3.2.3, the following > should be sufficient: > > > FC = fort77 > > FC = g77 > > > LDFLAGS= -lm -lf2c > > LDFLAGS = > > Hope this helps, > > -- > Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290 > Saturnushof 14, 3738 XG Maartensdijk, The Netherlands > Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html > GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)