aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-06-12 13:59:35 +0200
committerJustin Lecher <jlec@gentoo.org>2011-06-12 13:59:35 +0200
commitd5ae4cf4fb0fe55c8cdb01a53334f94fa16da2d4 (patch)
treed1cabce689c7f5262f4640c285888af9cd07ca21 /eclass/fortran-2.eclass
parent[fortran-2.eclass] Fix openmp check to be F77 compliant (diff)
downloadsci-d5ae4cf4fb0fe55c8cdb01a53334f94fa16da2d4.tar.gz
sci-d5ae4cf4fb0fe55c8cdb01a53334f94fa16da2d4.tar.bz2
sci-d5ae4cf4fb0fe55c8cdb01a53334f94fa16da2d4.zip
fortran-2 some cosmetic changes
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r--eclass/fortran-2.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 0eebf3dea..252ad3e42 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -28,7 +28,7 @@ RDEPEND="${DEPEND}"
_tc-has-fortran() {
local base="${T}/test-tc-fortran"
- cat <<-EOF > "${base}.f"
+ cat <<- EOF > "${base}.f"
end
EOF
$(tc-getFC "$@") "${base}.f" -o "${base}" >&/dev/null
@@ -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"
+ cat <<- EOF > "${base}.f"
call omp_get_num_threads
end
-EOF
+ EOF
$(tc-getFC "$@") -fopenmp "${base}.f" -o "${base}" >&/dev/null
local ret=$?
rm -f "${base}"*