summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2010-12-26 14:13:44 +0000
committerasau <asau@pkgsrc.org>2010-12-26 14:13:44 +0000
commit9726c30cf459e18d1c56fcaa713684196e2297ac (patch)
treeaa87f144209b7da4fbd85e160492a7727fc8095a /mk
parenta210bba5cd6a58c5b68b468057eb35e7be32aa42 (diff)
downloadpkgsrc-9726c30cf459e18d1c56fcaa713684196e2297ac.tar.gz
Break with the past: use g95 as default Fortran compiler.
Welcome to the modern world of computing. This is known to break DragonFly at least, either port g95 or fix lang/gcc44 to work on NetBSD. Unless there're packages that still think that Fortran is F77, this shouldn't affect anything.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 4116aaa2a89..7743084b5f4 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.106 2010/07/30 07:58:59 asau Exp $
+# $NetBSD: gcc.mk,v 1.107 2010/12/26 14:13:44 asau Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -556,7 +556,12 @@ ${_GCC_${_var_}}:
# On older NetBSD systems and where the Fortran compiler doesn't exist,
# force the use of f2c-f77 or some other fortran.
#
+.if !empty(USE_LANGUAGES:Mfortran)
+PKGSRC_FORTRAN?=g95
+.endif
+#.if !empty(USE_LANGUAGES:Mfortran77)
PKGSRC_FORTRAN?=f2c
+#.endif
_GCC_NEEDS_A_FORTRAN= no
.if !exists(${FCPATH})