Date: Sun, 2 Jun 2002 15:30:03 -0700 (PDT) From: "Steven G. Kargl" <kargls@attbi.com> To: freebsd-bugs@FreeBSD.org Subject: Re: gnu/38594: Fortran program don't link post gcc-3.1 Message-ID: <200206022230.g52MU3J00612@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/38594; it has been noted by GNATS.
From: "Steven G. Kargl" <kargls@attbi.com>
To: freebsd-gnats-submit@FreeBSD.org,
kargl@troutmask.apl.washington.edu
Cc:
Subject: Re: gnu/38594: Fortran program don't link post gcc-3.1
Date: Sun, 02 Jun 2002 15:27:30 -0700
This is a multi-part message in MIME format.
--------------030002060109020808090204
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Here the corrected patched (i.e., Ruslan's suggestions have been
incorporated). This patch had been sent to obrien@freebsd.org.
--
steve
--------------030002060109020808090204
Content-Type: text/plain;
name="f77.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="f77.diff"
diff -urN gnu/lib.old/Makefile gnu/lib/Makefile
--- gnu/lib.old/Makefile Tue May 28 17:45:50 2002
+++ gnu/lib/Makefile Sun Jun 2 14:11:31 2002
@@ -19,7 +19,7 @@
.endif
.if !defined(NO_FORTRAN)
-SUBDIR+= libg2c
+SUBDIR+= libfrtbegin libg2c
.endif
.include <bsd.subdir.mk>
diff -urN gnu/lib.old/libfrtbegin/MAIN.c gnu/lib/libfrtbegin/MAIN.c
--- gnu/lib.old/libfrtbegin/MAIN.c Wed Dec 31 16:00:00 1969
+++ gnu/lib/libfrtbegin/MAIN.c Tue Oct 31 03:36:33 2000
@@ -0,0 +1,4 @@
+/* $FreeBSD: src/gnu/lib/libg2c/MAIN.c,v 1.2 2000/10/31 11:36:33 obrien Exp $ */
+
+int
+MAIN__(){ return 0; }
diff -urN gnu/lib.old/libfrtbegin/Makefile gnu/lib/libfrtbegin/Makefile
--- gnu/lib.old/libfrtbegin/Makefile Wed Dec 31 16:00:00 1969
+++ gnu/lib/libfrtbegin/Makefile Sun Jun 2 14:16:31 2002
@@ -0,0 +1,12 @@
+SRCDIR= ${.CURDIR}/../../../contrib/libf2c
+
+.PATH: ${SRCDIR} ${SRCDIR}/libF77
+
+LIB= frtbegin
+
+SRCS= MAIN.c main.c
+
+NOPIC= yes
+NOPROFILE= yes
+
+.include <bsd.lib.mk>
diff -urN gnu/lib.old/libg2c/Makefile gnu/lib/libg2c/Makefile
--- gnu/lib.old/libg2c/Makefile Sun May 12 09:00:46 2002
+++ gnu/lib/libg2c/Makefile Sun Jun 2 14:17:20 2002
@@ -10,7 +10,7 @@
# Traditional FORTRAN Library members defined in libF77
-F77MISC= F77_aloc.c main.c s_rnge.c abort_.c getarg_.c \
+F77MISC= F77_aloc.c s_rnge.c abort_.c getarg_.c \
iargc_.c getenv_.c signal_.c s_stop.c s_paus.c system_.c \
cabs.c derf_.c derfc_.c erf_.c erfc_.c sig_die.c exit_.c \
setarg.c setsig.c
@@ -79,7 +79,7 @@
secnds.o second.o signal.o sleep.o srand.o stat.o symlnk.o \
system.o time.o ttynam.o umask.o unlink.o vxtidt.o vxttim.o
-LIBF77SRCS= ${F77SRCS} ${I77SRCS} ${U77SRCS} ${E77SRCS} MAIN.c
+LIBF77SRCS= ${F77SRCS} ${I77SRCS} ${U77SRCS} ${E77SRCS}
SRCS= ${LIBF77SRCS}
OBJS= ${E77OBJS}
--------------030002060109020808090204--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206022230.g52MU3J00612>
