diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2020-04-16 15:27:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 17:27:30 -0500 |
commit | bacbaeb5638cf39196ed8cf3d18f665c208219da (patch) | |
tree | 47aa8a409c95200a3cc704afcce3d50d70dda3a2 | |
parent | bb2849002b7d734b8fd31a6b7837d0f2b13c2200 (diff) | |
download | spack-bacbaeb5638cf39196ed8cf3d18f665c208219da.tar.gz spack-bacbaeb5638cf39196ed8cf3d18f665c208219da.tar.bz2 spack-bacbaeb5638cf39196ed8cf3d18f665c208219da.tar.xz spack-bacbaeb5638cf39196ed8cf3d18f665c208219da.zip |
ncurses: forward termlib libs (#16101)
These libs need to be forwarded, as in ncurses `pkg-config` file.
-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 |