Date: Thu, 6 Sep 2001 10:55:17 -0500 (CDT) From: Glenn Johnson <gjohnson@srrc.ars.usda.gov> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/30399: Have Fortran use the CPUTYPE variable Message-ID: <200109061555.f86FtHi05054@node7.cluster.srrc.usda.gov>
next in thread | raw e-mail | index | archive | help
>Number: 30399
>Category: conf
>Synopsis: Have Fortran use the CPUTYPE variable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 06 09:00:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Glenn Johnson
>Release: FreeBSD 4.4-RC i386
>Organization:
USDA, ARS, SRRC
>Environment:
System: FreeBSD node7.cluster.srrc.usda.gov 4.4-RC FreeBSD 4.4-RC #4: Tue Sep 4 16:55:10 CDT 2001 root@node7.cluster.srrc.usda.gov:/usr/obj/usr/src/sys/CLUSTER-UP i386
>Description:
Programs compiled with Fortran do not make use of the CPUTYPE
variable. The enclosed patch allows Fortran programs to be
compiled with a machine optimization setting via the CPUTYPE
variable.
>How-To-Repeat:
>Fix:
Apply the enclosed patch to src/share/mk/bsd.cpu.mk
--- bsd.cpu.mk.orig Thu Sep 6 10:49:13 2001
+++ bsd.cpu.mk Thu Sep 6 10:49:35 2001
@@ -74,6 +74,10 @@
CFLAGS += ${_CPUCFLAGS}
.endif
+.if !defined(NO_CPU_CFLAGS)
+FFLAGS += ${_CPUCFLAGS}
+.endif
+
# Set up the list of CPU features based on the CPU type. This is an
# unordered list to make it easy for client makefiles to test for the
# presence of a CPU feature.
>Release-Note:
>Audit-Trail:
>Unformatted:
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?200109061555.f86FtHi05054>
