conf/96834: [PATCH] Update Fortran related variables in sys.mk

Steven G. Kargl kargl at troutmask.apl.washington.edu
Fri May 5 18:20:21 UTC 2006


>Number:         96834
>Category:       conf
>Synopsis:       [PATCH] Update Fortran related variables in sys.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 05 18:20:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Steven G. Kargl
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
APL/UW
>Environment:
System: FreeBSD troutmask.apl.washington.edu 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Apr 13 10:34:17 PDT 2006 root at troutmask.apl.washington.edu:/usr/obj/usr/src/sys/SPEW amd64


	
>Description:

The sys.mk file currently defines "FFLAGS = -O" for the default
Fortran compilation options while "CFLAGS = -O2 -pipe".  Futhermore,
the .if (POSIX) conditional is unnecessary.  FreeBSD has never had a
fort77 program and it never will.
	
>How-To-Repeat:
	
>Fix:

The patch removes the POSIX conditional and updates
the default Fortran flags.

--- sys.mk.orig	Fri May  5 11:12:58 2006
+++ sys.mk	Fri May  5 11:13:46 2006
@@ -63,13 +63,8 @@
 _+_		?=	+
 .endif
 
-.if defined(%POSIX)
-FC		?=	fort77
-FFLAGS		?=	-O 1
-.else
 FC		?=	f77
-FFLAGS		?=	-O
-.endif
+FFLAGS		?=	-O2 -pipe
 EFLAGS		?=
 
 INSTALL		?=	install

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list