This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Makefile conversion needed, can't find lf2c


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]