public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Makefile conversion needed, can't find lf2c
@ 2003-05-12 14:03 Joseph Maxwell
  2003-05-12 22:20 ` Toon Moene
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Maxwell @ 2003-05-12 14:03 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Makefile conversion needed, can't find lf2c
  2003-05-12 14:03 Makefile conversion needed, can't find lf2c Joseph Maxwell
@ 2003-05-12 22:20 ` Toon Moene
  2003-05-14 15:23   ` Joseph Maxwell
  0 siblings, 1 reply; 3+ messages in thread
From: Toon Moene @ 2003-05-12 22:20 UTC (permalink / raw)
  To: Joseph Maxwell; +Cc: gcc-help

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Makefile conversion needed, can't find lf2c
  2003-05-12 22:20 ` Toon Moene
@ 2003-05-14 15:23   ` Joseph Maxwell
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Maxwell @ 2003-05-14 15:23 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc-help

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-14 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 14:03 Makefile conversion needed, can't find lf2c Joseph Maxwell
2003-05-12 22:20 ` Toon Moene
2003-05-14 15:23   ` Joseph Maxwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).