readline: fix build with ncurses~termlib (#18524)

This commit is contained in:
Adam J. Stewart 2020-09-09 03:12:46 -05:00 committed by GitHub
parent 4307b73299
commit 96364235e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)