cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/19/15:50:52

From: "Scott M. Blackman" <scott DOT blackman AT vanderbilt DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: f2c using djgpp
Date: Tue, 19 May 1998 09:21:22 -0500
Organization: Vanderbilt University
Lines: 94
Message-ID: <35619562.17948A40@vanderbilt.edu>
References: <6jo63h$m9s$1 AT node2 DOT nodak DOT edu>
NNTP-Posting-Host: 160.129.157.110
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I compiled f2c-19980118 using djgpp.  Aside from optimization changes,
I had to change the Makefiles for libF77 and libI77 (omit the -x from
the
ld command).  Here is a diff containing the changes I made.  To apply,
go into
your f2c base directory (the one containing libI77 and libF77
subdirectories)
and type: patch -p1 < diff-file .


You also might want to try out g77 from the egcs package.  I have made a
djgpp
version of egcs-1.0.2 including the fortran compiler.  I can post
instructions
on how to make it.

Enjoy
Scott Blackman
scott DOT blackman AT vanderbilt DOT edu

Supa-Joel wrote:
> 
> Hi all,
> 
> I recently downloaded djgpp binaries, documentation and sources.  I have
> yet to explore it fully, but I do want to compile my own f2c executable
> using gcc.  I downloaded the libf2c.zip file, uncompressed it, and tried
> to use make on it.  However, I have been having some troubles.  Is there a
> definitive ms-dos makefile that is in use that I can use to get the
> blasted thing to compile?
> 
> Thanks in advance,
> 
> Joel Haugen
> 

diff -ur f2c/libF77/makefile f2c-new/libF77/makefile
--- f2c/libF77/makefile Thu Feb  5 12:06:40 1998
+++ f2c-new/libF77/makefile     Thu Feb  5 11:28:22 1998
@@ -1,7 +1,7 @@
 .SUFFIXES: .c .o
-CC = cc
+CC = gcc
 SHELL = /bin/sh
-CFLAGS = -O
+CFLAGS = -O3 -fomit-frame-pointer -m486
 
 # If your system lacks onexit() and you are not using an
 # ANSI C compiler, then you should add -DNO_ONEXIT to CFLAGS,
@@ -15,7 +15,7 @@
 # compile, then strip unnecessary symbols
 .c.o:
        $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
-       ld -r -x -o $*.xxx $*.o
+       ld -r -o $*.xxx $*.o
        mv $*.xxx $*.o
 ## Under Solaris (and other systems that do not understand ld -x),
 ## omit -x in the ld line above.
diff -ur f2c/libI77/makefile f2c-new/libI77/makefile
--- f2c/libI77/makefile Thu Feb  5 12:06:34 1998
+++ f2c-new/libI77/makefile     Thu Feb  5 11:50:18 1998
@@ -1,12 +1,12 @@
 .SUFFIXES: .c .o
-CC = cc
-CFLAGS = -O
+CC = gcc
+CFLAGS = -O3 -fomit-frame-pointer -m486 -D_POSIX_SOURCE
 SHELL = /bin/sh
 
 # compile, then strip unnecessary symbols
 .c.o:
        $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
-       ld -r -x -o $*.xxx $*.o
+       ld -r -o $*.xxx $*.o
        mv $*.xxx $*.o
 ## Under Solaris (and other systems that do not understand ld -x),
 ## omit -x in the ld line above.
diff -ur f2c/src/makefile f2c-new/src/makefile
--- f2c/src/makefile    Tue Feb  3 09:18:24 1998
+++ f2c-new/src/makefile        Thu Feb  5 11:19:24 1998
@@ -2,10 +2,10 @@
 
 .SUFFIXES: .c .o
 g = -g
-CC = cc
-CFLAGS = $g
+CC = gcc
+CFLAGS = -O2 -m486
 SHELL = /bin/sh
-YACC = yacc
+YACC = bison -y
 YFLAGS =
 
 .c.o:

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019