diff --git a/Config.hs b/Config.hs
--- a/Config.hs
+++ b/Config.hs
@@ -40,7 +40,7 @@
 
 -- compile a simple program with symbols from GSL and LAPACK with the given libs
 testprog bInfo buildInfo libs fmks =
-    "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){zgesvd_(); gsl_sf_gamma(5);}\""
+    "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){dgemm_(); zgesvd_(); gsl_sf_gamma(5);}\""
                      ++" > " ++ (buildDir bInfo) ++ "/dummy.c; gcc "
                      ++ (join $ ccOptions buildInfo) ++ " "
                      ++ (join $ cppOptions buildInfo) ++ " "
@@ -90,7 +90,7 @@
           else try l i b f rest
 
 -- read --configure-option=link:lib1,lib2,lib3,etc
-linkop = "link:"
+linkop = "--configure-option=link:"
 getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop)
     where g = map cs
           cs ',' = ' '
diff --git a/THANKS b/THANKS
--- a/THANKS
+++ b/THANKS
@@ -100,3 +100,6 @@
 - Bas van Dijk fixed the import of vector >= 0.8, got rid of some
   deprecation warnings and used more explicit imports.
 
+- Tom Nielsen discovered a problem in Config.hs, exposed by link problems
+  in Ubuntu 11.10 beta.
+
diff --git a/hmatrix.cabal b/hmatrix.cabal
--- a/hmatrix.cabal
+++ b/hmatrix.cabal
@@ -1,5 +1,5 @@
 Name:               hmatrix
-Version:            0.12.0.0
+Version:            0.12.0.1
 License:            GPL
 License-file:       LICENSE
 Author:             Alberto Ruiz
