diff options
author | adam <adam@pkgsrc.org> | 2010-12-26 09:46:24 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2010-12-26 09:46:24 +0000 |
commit | fe611162b6810590aa53236caaa0832a3ce4ba89 (patch) | |
tree | b7777cf7f562367bfbf9ac86e0762679088e8598 /mk | |
parent | a517a84265ad33593d81be5272d42c9a1927474a (diff) | |
download | pkgsrc-fe611162b6810590aa53236caaa0832a3ce4ba89.tar.gz |
Enable Fortran via f2c
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/clang.mk | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/mk/compiler/clang.mk b/mk/compiler/clang.mk index c5a493a702e..ff047438613 100644 --- a/mk/compiler/clang.mk +++ b/mk/compiler/clang.mk @@ -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 |