Add ncurses+termlib dependency to mesa (#16038)

Mesa links against libtinfo so needs to depend on ncurses. It also needs
a little help finding the library directory so an LDFLAGS configure
option is added.
This commit is contained in:
Glenn Johnson 2020-04-16 13:25:28 -05:00 committed by GitHub
parent 2e4e34e6cc
commit 07a4ac67b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,7 @@ class Mesa(AutotoolsPackage):
depends_on('libxml2')
depends_on('zlib')
depends_on('expat')
depends_on('ncurses+termlib')
# Internal options
variant('llvm', default=True, description="Enable LLVM.")
@ -83,6 +84,7 @@ def autoreconf(self, spec, prefix):
def configure_args(self):
spec = self.spec
args = [
'LDFLAGS={0}'.format(self.spec['ncurses'].libs.search_flags),
'--enable-shared',
'--disable-static',
'--disable-libglvnd',