From 07a4ac67b83a3323b46b45a5bfcda68ee0908c7e Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Thu, 16 Apr 2020 13:25:28 -0500 Subject: [PATCH] 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. --- var/spack/repos/builtin/packages/mesa/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index 4132ba0ff4..5a2893a645 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -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',