From a7b8d26fa784a8731ef382ca769384da8c2b5187 Mon Sep 17 00:00:00 2001 From: Geoffrey Oxberry Date: Wed, 14 Feb 2018 01:40:56 -0800 Subject: [PATCH] xbraid: add libs method (#7233) XBraid installs `libbraid.a`, but the default `libs` method implementation will search for `libxbraid`, which does not exist. This commit fixes the behavior of the `libs` method for the `xbraid` package by overriding package's `libs` method. --- var/spack/repos/builtin/packages/xbraid/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/xbraid/package.py b/var/spack/repos/builtin/packages/xbraid/package.py index 05032ce128..d1d5fa2fed 100644 --- a/var/spack/repos/builtin/packages/xbraid/package.py +++ b/var/spack/repos/builtin/packages/xbraid/package.py @@ -66,3 +66,8 @@ def install(self, spec, prefix): install_tree('test', prefix.share.test) install_tree('user_utils', prefix.share.user_utils) install_tree('docs', prefix.share.docs) + + @property + def libs(self): + return find_libraries('libbraid', root=self.prefix, + shared=False, recursive=True)