summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/readline/package.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/readline/package.py b/var/spack/repos/builtin/packages/readline/package.py
index 5c1f686e27..d4e95c8037 100644
--- a/var/spack/repos/builtin/packages/readline/package.py
+++ b/var/spack/repos/builtin/packages/readline/package.py
@@ -28,12 +28,4 @@ class Readline(AutotoolsPackage, GNUMirrorPackage):
patch('readline-6.3-upstream_fixes-1.patch', when='@6.3')
def build(self, spec, prefix):
- options = [
- 'SHLIB_LIBS=-L{0} -lncursesw'.format(
- spec['ncurses'].prefix.lib)
- ]
-
- if '+termlib' in spec['ncurses']:
- options[0] += ' -ltinfo'
-
- make(*options)
+ make('SHLIB_LIBS=' + spec['ncurses'].libs.ld_flags)