ncurses: forward termlib libs (#16101)

These libs need to be forwarded, as in ncurses `pkg-config` file.
This commit is contained in:
Axel Huebl 2020-04-16 15:27:30 -07:00 committed by GitHub
parent bb2849002b
commit bacbaeb563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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