diff --git a/hmatrix-gsl.cabal b/hmatrix-gsl.cabal
--- a/hmatrix-gsl.cabal
+++ b/hmatrix-gsl.cabal
@@ -1,5 +1,5 @@
 Name:               hmatrix-gsl
-Version:            0.16.0.2
+Version:            0.16.0.3
 License:            GPL
 License-file:       LICENSE
 Author:             Alberto Ruiz
@@ -19,6 +19,10 @@
 
 extra-source-files: src/Numeric/GSL/gsl-ode.c
 
+flag onlygsl
+    description:    don't link gslcblas
+    default:        False
+
 library
 
     Build-Depends:      base<5, hmatrix>=0.16, array, vector,
@@ -76,7 +80,10 @@
         if arch(x86_64)
             cc-options: -fPIC
 
-    pkgconfig-depends: gsl
+    if flag(onlygsl)
+      extra-libraries: gsl
+    else
+      pkgconfig-depends: gsl
 
 
 source-repository head
