Enable Fortran via f2c

This commit is contained in:
adam 2010-12-26 09:46:24 +00:00
parent a517a84265
commit fe611162b6

View file

@ -1,4 +1,4 @@
# $NetBSD: clang.mk,v 1.4 2010/12/26 08:12:30 adam Exp $
# $NetBSD: clang.mk,v 1.5 2010/12/26 09:46:24 adam Exp $
#
# This is the compiler definition for the clang compiler.
#
@ -34,13 +34,6 @@ CXXPATH= ${CLANGBASE}/bin/clang++
PKG_CXX:= ${CXXPATH}
.endif
# Mimic GCC behaviour by defaulting to C89
#.if !empty(USE_LANGUAGES:Mc99)
#_WRAP_EXTRA_ARGS.CC+= -std=gnu99
#.else
#_WRAP_EXTRA_ARGS.CC+= -std=gnu89
#.endif
.if exists(${CCPATH})
CC_VERSION_STRING!= ${CCPATH} -v 2>&1
CC_VERSION!= ${CCPATH} -dumpversion 2>&1
@ -63,4 +56,8 @@ _LANGUAGES.clang= # empty
_LANGUAGES.clang+= ${LANGUAGES.clang:M${_lang_}}
.endfor
.if !(empty(USE_LANGUAGES:Mfortran) && empty(USE_LANGUAGES:Mfortran77))
.include "../../mk/compiler/f2c.mk"
.endif
.endif # COMPILER_CLANG_MK