aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2011-06-12 13:23:59 +0200
committerKacper Kowalik (Xarthisius) <xarthisius@gentoo.org>2011-06-12 13:23:59 +0200
commit48882d18ea1f4413784c3a9e308f6712bde295a2 (patch)
tree671590323980e92c08586b8b1baeeae59e586572 /eclass/fortran-2.eclass
parentfortran-2.eclass added (diff)
downloadsci-48882d18ea1f4413784c3a9e308f6712bde295a2.tar.gz
sci-48882d18ea1f4413784c3a9e308f6712bde295a2.tar.bz2
sci-48882d18ea1f4413784c3a9e308f6712bde295a2.zip
[fortran-2.eclass] Fix openmp check to be F77 compliant
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r--eclass/fortran-2.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 6528724c4..0eebf3dea 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -42,10 +42,10 @@ _gfortran-has-openmp() {
[[ $(tc-getFC) != *gfortran* ]] && return 0
local base="${T}/test-fc-openmp"
# leave extra leading space to make sure it works on fortran 77 as well
- cat <<- EOF > "${base}.f"
- call omp_get_num_threads
- end
- EOF
+ cat << EOF > "${base}.f"
+ call omp_get_num_threads
+ end
+EOF
$(tc-getFC "$@") -fopenmp "${base}.f" -o "${base}" >&/dev/null
local ret=$?
rm -f "${base}"*