diff options
-rw-r--r-- | var/spack/repos/builtin/packages/ncurses/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py index 9df2de49b7..85fd9d68f8 100644 --- a/var/spack/repos/builtin/packages/ncurses/package.py +++ b/var/spack/repos/builtin/packages/ncurses/package.py @@ -105,5 +105,9 @@ class Ncurses(AutotoolsPackage, GNUMirrorPackage): @property def libs(self): - return find_libraries( + nc_libs = find_libraries( ['libncurses', 'libncursesw'], root=self.prefix, recursive=True) + if '+termlib' in self.spec: + nc_libs.extend(find_libraries( + ['libtinfo', 'libtinfow'], root=self.prefix, recursive=True)) + return nc_libs |