diff options
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index c2ee18a..75e2984 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -25,6 +25,10 @@ flag mkl | |||
25 | description: Link with Intel's MKL optimized libraries. | 25 | description: Link with Intel's MKL optimized libraries. |
26 | default: False | 26 | default: False |
27 | 27 | ||
28 | flag gsl | ||
29 | description: Link with GSL unoptimized blas. | ||
30 | default: False | ||
31 | |||
28 | flag unsafe | 32 | flag unsafe |
29 | description: Compile the library with bound checking disabled. | 33 | description: Compile the library with bound checking disabled. |
30 | default: False | 34 | default: False |
@@ -108,7 +112,10 @@ library | |||
108 | else | 112 | else |
109 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core | 113 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core |
110 | else | 114 | else |
111 | extra-libraries: gsl blas lapack | 115 | if flag(gsl) |
116 | extra-libraries: gsl gslcblas lapack | ||
117 | else | ||
118 | extra-libraries: gsl blas lapack | ||
112 | 119 | ||
113 | cc-options: -O4 | 120 | cc-options: -O4 |
114 | ghc-prof-options: -auto-all | 121 | ghc-prof-options: -auto-all |