From owner-freebsd-bugs Thu Sep 6 9: 0:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0825737B40C for ; Thu, 6 Sep 2001 09:00:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f86G03721505; Thu, 6 Sep 2001 09:00:03 -0700 (PDT) (envelope-from gnats) Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id D841E37B40B for ; Thu, 6 Sep 2001 08:55:18 -0700 (PDT) Received: from node7.cluster.srrc.usda.gov (node7.cluster.srrc.usda.gov [192.168.1.7]) by symbion.srrc.usda.gov (8.11.6/8.11.6) with ESMTP id f86FtI707645 for ; Thu, 6 Sep 2001 10:55:18 -0500 (CDT) (envelope-from gjohnson@srrc.ars.usda.gov) Received: (from glenn@localhost) by node7.cluster.srrc.usda.gov (8.11.6/8.11.6) id f86FtHi05054; Thu, 6 Sep 2001 10:55:17 -0500 (CDT) (envelope-from glenn) Message-Id: <200109061555.f86FtHi05054@node7.cluster.srrc.usda.gov> Date: Thu, 6 Sep 2001 10:55:17 -0500 (CDT) From: Glenn Johnson Reply-To: Glenn Johnson To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/30399: Have Fortran use the CPUTYPE variable Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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