diff options
author | Alberto Ruiz <aruiz@um.es> | 2011-09-21 13:00:29 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2011-09-21 13:00:29 +0000 |
commit | 0234c29e0467aabf70304ef95375643455f7ff24 (patch) | |
tree | 3386015fcf91b24ae733a9e723fceec15c4ccd98 /Config.hs | |
parent | 3797b187d1747f1971c112084976fb2808fc87b0 (diff) |
fix Config.hs
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ opts = [ "" -- Ubuntu/Debian | |||
40 | 40 | ||
41 | -- compile a simple program with symbols from GSL and LAPACK with the given libs | 41 | -- compile a simple program with symbols from GSL and LAPACK with the given libs |
42 | testprog bInfo buildInfo libs fmks = | 42 | testprog bInfo buildInfo libs fmks = |
43 | "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){zgesvd_(); gsl_sf_gamma(5);}\"" | 43 | "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){dgemm_(); zgesvd_(); gsl_sf_gamma(5);}\"" |
44 | ++" > " ++ (buildDir bInfo) ++ "/dummy.c; gcc " | 44 | ++" > " ++ (buildDir bInfo) ++ "/dummy.c; gcc " |
45 | ++ (join $ ccOptions buildInfo) ++ " " | 45 | ++ (join $ ccOptions buildInfo) ++ " " |
46 | ++ (join $ cppOptions buildInfo) ++ " " | 46 | ++ (join $ cppOptions buildInfo) ++ " " |
@@ -90,7 +90,7 @@ try l i b f (opt:rest) = do | |||
90 | else try l i b f rest | 90 | else try l i b f rest |
91 | 91 | ||
92 | -- read --configure-option=link:lib1,lib2,lib3,etc | 92 | -- read --configure-option=link:lib1,lib2,lib3,etc |
93 | linkop = "link:" | 93 | linkop = "--configure-option=link:" |
94 | getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop) | 94 | getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop) |
95 | where g = map cs | 95 | where g = map cs |
96 | cs ',' = ' ' | 96 | cs ',' = ' ' |