summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-09-19 16:32:05 -0500
committerGitHub <noreply@github.com>2020-09-19 16:32:05 -0500
commit458dc8187824df724125637fc787b0efaea70513 (patch)
tree9c66cebb62076af313bc34d283bfb9084f34a712
parentf570d7a45c10da4eeca51be473a8b0a286dc564f (diff)
downloadspack-458dc8187824df724125637fc787b0efaea70513.tar.gz
spack-458dc8187824df724125637fc787b0efaea70513.tar.bz2
spack-458dc8187824df724125637fc787b0efaea70513.tar.xz
spack-458dc8187824df724125637fc787b0efaea70513.zip
ncurses: fix libs method (#18799)
-rw-r--r--var/spack/repos/builtin/packages/ncurses/package.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py
index 0fe28c1f4e..068bba6993 100644
--- a/var/spack/repos/builtin/packages/ncurses/package.py
+++ b/var/spack/repos/builtin/packages/ncurses/package.py
@@ -141,9 +141,9 @@ class Ncurses(AutotoolsPackage, GNUMirrorPackage):
@property
def libs(self):
- nc_libs = find_libraries(
- ['libncurses', 'libncursesw'], root=self.prefix, recursive=True)
+ libraries = ['libncurses', 'libncursesw']
+
if '+termlib' in self.spec:
- nc_libs.extend(find_libraries(
- ['libtinfo', 'libtinfow'], root=self.prefix, recursive=True))
- return nc_libs
+ libraries += ['libtinfo', 'libtinfow']
+
+ return find_libraries(libraries, root=self.prefix, recursive=True)