From 7d5ddb1fc626367d1abcc43bc614abd9f72450dd Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 19 Sep 2020 16:32:42 -0500 Subject: readline: simplify linking to ncurses (#18801) --- var/spack/repos/builtin/packages/readline/package.py | 10 +--------- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3-70-g09d2