readline: simplify linking to ncurses (#18801)

This commit is contained in:
Adam J. Stewart 2020-09-19 16:32:42 -05:00 committed by GitHub
parent 489377d051
commit 7d5ddb1fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,12 +28,4 @@ class Readline(AutotoolsPackage, GNUMirrorPackage):
patch('readline-6.3-upstream_fixes-1.patch', when='@6.3') patch('readline-6.3-upstream_fixes-1.patch', when='@6.3')
def build(self, spec, prefix): def build(self, spec, prefix):
options = [ make('SHLIB_LIBS=' + spec['ncurses'].libs.ld_flags)
'SHLIB_LIBS=-L{0} -lncursesw'.format(
spec['ncurses'].prefix.lib)
]
if '+termlib' in spec['ncurses']:
options[0] += ' -ltinfo'
make(*options)