# @CODE
fortran_int64_abi_fflags() {
debug-print-function ${FUNCNAME} "${@}"
+
_FC=$(tc-getFC)
if [[ ${_FC} == *gfortran* ]]; then
echo "-fdefault-integer-8"
# @DESCRIPTION:
# writes fortran test code
_fortran_write_testsuite() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local filebase=${T}/test-fortran
# f77 code
# Takes fortran compiler as first argument and dialect as second.
# Checks whether the passed fortran compiler speaks the fortran dialect
_fortran_compile_test() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local filebase=${T}/test-fortran
local fcomp=${1}
local fdia=${2}
# @DESCRIPTION:
# See if the fortran supports OpenMP.
_fortran-has-openmp() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local flag
local filebase=${T}/test-fc-openmp
local fcode=${filebase}.f
# @DESCRIPTION:
# Detailed description how to handle fortran support
_fortran_die_msg() {
+ debug-print-function ${FUNCNAME} "${@}"
+
echo
eerror "Please install currently selected gcc version with USE=fortran."
eerror "If you intend to use a different compiler then gfortran, please"
# Internal test function for working fortran compiler.
# It is called in fortran-2_pkg_setup.
_fortran_test_function() {
+ debug-print-function ${FUNCNAME} "${@}"
+
local dialect
: ${F77:=$(tc-getFC)}
# Setup functionality,
# checks for a valid fortran compiler and optionally for its openmp support.
fortran-2_pkg_setup() {
+ debug-print-function ${FUNCNAME} "${@}"
+
case ${EAPI:-0} in
0|1|2|3)
eqawarn "Support for EAPI < 4 will be removed from the"