diff options
-rw-r--r-- | sci-mathematics/scilab/scilab-5.3.3-r1.ebuild | 4 | ||||
-rw-r--r-- | sci-mathematics/scilab/scilab-5.4.0.ebuild | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sci-mathematics/scilab/scilab-5.3.3-r1.ebuild b/sci-mathematics/scilab/scilab-5.3.3-r1.ebuild index 912bb8154..a9883eaf8 100644 --- a/sci-mathematics/scilab/scilab-5.3.3-r1.ebuild +++ b/sci-mathematics/scilab/scilab-5.3.3-r1.ebuild @@ -93,6 +93,10 @@ pkg_pretend() { pkg_setup() { if use openmp; then + if [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp; then + ewarn "You are using a gcc without OpenMP capabilities" + die "Need an OpenMP capable compiler" + fi FORTRAN_NEED_OPENMP=1 fi FORTRAN_STANDARD="77 90" diff --git a/sci-mathematics/scilab/scilab-5.4.0.ebuild b/sci-mathematics/scilab/scilab-5.4.0.ebuild index 0b245d6f2..f2e4e6cf8 100644 --- a/sci-mathematics/scilab/scilab-5.4.0.ebuild +++ b/sci-mathematics/scilab/scilab-5.4.0.ebuild @@ -96,6 +96,10 @@ pkg_pretend() { pkg_setup() { if use openmp; then + if [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp; then + ewarn "You are using a gcc without OpenMP capabilities" + die "Need an OpenMP capable compiler" + fi FORTRAN_NEED_OPENMP=1 fi FORTRAN_STANDARD="77 90" |