Added missing -lpthread to OpenBLAS check.

See: https://github.com/xianyi/OpenBLAS/wiki/faq#static_link
This commit is contained in:
Elizabeth F 2016-04-27 18:43:16 -04:00
parent 92afa52eec
commit ee6a75c9b5

View file

@ -119,7 +119,7 @@ def check_install(self, spec):
# 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)