ports/98124: Minor cleanup on science/elmer-fem
Pedro F. Giffuni
giffunip at asme.org
Tue May 30 05:10:14 UTC 2006
>Number: 98124
>Category: ports
>Synopsis: Minor cleanup on science/elmer-fem
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue May 30 05:10:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Pedro F. Giffuni
>Release: 6.1-Release (amd64)
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Fri May 12 00:18:58 COT 2006 root at etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION amd64
>Description:
- Fix a minor issue with FCFLAGS so more agressive optimizations are possible.
- This change follows the spirit of ports/98109 to elmer-mathlibs however no WITH_MPI knob is offered because it doesn't work until gcc41/gfortran are the default compilers.
- The gfortran port claims to be experimental so while a knob for OPTIMIZED_FLAGS is provided (and such a thing makes sense in this module) it is not encouraged.
>How-To-Repeat:
>Fix:
diff -ruN elmer-fem.orig/Makefile elmer-fem/Makefile
--- elmer-fem.orig/Makefile Mon May 29 15:20:06 2006
+++ elmer-fem/Makefile Mon May 29 21:21:00 2006
@@ -29,9 +29,13 @@
FC= ${LOCALBASE}/bin/gfortran41
F77= ${FC}
+.ifdef WITH_OPTIMIZED_FLAGS
+FCFLAGS+= -O3 -ffast-math -funroll-loops
+.endif
+
USE_AUTOTOOLS= autoconf:259
GNU_CONFIGURE= yes
-CONFIGURE_ENV+= FC=${FC} F77=${FC} FCFLAGS=${FCFLAGS}
+CONFIGURE_ENV+= FC=${FC} F77=${FC} FCFLAGS="${FCFLAGS}"
USE_GMAKE= yes
ALL_TARGET=
INSTALLS_SHLIB= yes
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list