summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth F <rpf2116@columbia.edu>2016-04-27 18:43:16 -0400
committerElizabeth F <rpf2116@columbia.edu>2016-04-27 18:44:54 -0400
commitee6a75c9b5bb072ef852b2fae80e2dc1f3944d53 (patch)
tree79b62bd740efc2103915bb45334fd96bdaf02c4e
parent92afa52eecb379d99ed14a4e805355e6fc7760db (diff)
downloadspack-ee6a75c9b5bb072ef852b2fae80e2dc1f3944d53.tar.gz
spack-ee6a75c9b5bb072ef852b2fae80e2dc1f3944d53.tar.bz2
spack-ee6a75c9b5bb072ef852b2fae80e2dc1f3944d53.tar.xz
spack-ee6a75c9b5bb072ef852b2fae80e2dc1f3944d53.zip
Added missing -lpthread to OpenBLAS check.
See: https://github.com/xianyi/OpenBLAS/wiki/faq#static_link
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 61250fb310..52edd1a77a 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -119,7 +119,7 @@ return 0;
# TODO: Automate these path and library settings
cc('-c', "-I%s" % join_path(spec.prefix, "include"), "check.c")
cc('-o', "check", "check.o",
- "-L%s" % join_path(spec.prefix, "lib"), "-llapack", "-lblas")
+ "-L%s" % join_path(spec.prefix, "lib"), "-llapack", "-lblas", "-lpthread")
try:
check = Executable('./check')
output = check(return_output=True)