From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3816 invoked by alias); 12 May 2003 14:03:16 -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 3689 invoked from network); 12 May 2003 14:03:15 -0000 Received: from unknown (HELO mail.speakeasy.net) (216.254.0.214) by sources.redhat.com with SMTP; 12 May 2003 14:03:15 -0000 Received: (qmail 25686 invoked from network); 12 May 2003 14:03:16 -0000 Received: from unknown (HELO jaymax.com) (jaymax@[66.93.45.209]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 12 May 2003 14:03:16 -0000 Message-ID: <3EBFA9B4.B3CF6D5E@jaymax.com> Date: Mon, 12 May 2003 14:03:00 -0000 From: Joseph Maxwell X-Accept-Language: en,pdf MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Makefile conversion needed, can't find lf2c Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00093.txt.bz2 Hello, 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. Thanks -- Joe -- The Makefile ==> # This is a sample makefile which compiles and links # MOKRO 395mn on LINUX # Set the compiler and loader commands. # FC = fort77 FFLAGS= -O3 LD= cc LDFLAGS= -lm -lf2c MOKRO_MAIN = MOKRO_main.o MOKRO = m395_mod.o m395_unmod.o betsrp.o chgmp2.o # MOKRO machine-dependant routines MMD = m395_mdep_ws.o m395_ef_ws.o # General machine-dependant routines GMD = second_linux.o date_linux.o fromblas.o CFI = second1.o dateclock.o MOKRO395: $(CFI) $(MOKRO) $(MOKRO_MAIN) $(MMD) $(GMD) $(LD) -o MOKRO395mn $(MOKRO) $(MOKRO_MAIN) $(MMD) $(GMD) $(CFI) $(LDFLAGS) $(MOKRO) $(MOKRO_MAIN) $(MMD) : SIZES.i clean :; /bin/rm *.o