diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py index bef6540a30..90146da14e 100644 --- a/var/spack/repos/builtin/packages/gdb/package.py +++ b/var/spack/repos/builtin/packages/gdb/package.py @@ -39,6 +39,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): variant('quad', default=False, description='Enable quad') variant('gold', default=False, description='Enable gold linker') variant('ld', default=False, description='Enable ld') + variant('tui', default=False, description='Enable tui') # Required dependency depends_on('texinfo', type='build') @@ -47,6 +48,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): depends_on('python', when='+python') depends_on('xz', when='+xz') depends_on('source-highlight', when='+source-highlight') + depends_on('ncurses', when='+tui') build_directory = 'spack-build' @@ -69,4 +71,7 @@ def configure_args(self): if '+ld' in self.spec: args.append('--enable-ld') + if '+tui' in self.spec: + args.append('--enable-tui') + return args