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 @@ def install(self, spec, prefix): @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