summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/readline/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/readline/package.py b/var/spack/repos/builtin/packages/readline/package.py
index 0db25205c2..5c1f686e27 100644
--- a/var/spack/repos/builtin/packages/readline/package.py
+++ b/var/spack/repos/builtin/packages/readline/package.py
@@ -29,8 +29,11 @@ class Readline(AutotoolsPackage, GNUMirrorPackage):
def build(self, spec, prefix):
options = [
- 'SHLIB_LIBS=-L{0} -lncursesw -ltinfo'.format(
+ 'SHLIB_LIBS=-L{0} -lncursesw'.format(
spec['ncurses'].prefix.lib)
]
+ if '+termlib' in spec['ncurses']:
+ options[0] += ' -ltinfo'
+
make(*options)