Skip to content
Snippets Groups Projects
Unverified Commit 7d5ddb1f authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

readline: simplify linking to ncurses (#18801)

parent 489377d0
Branches
No related tags found
No related merge requests found
...@@ -28,12 +28,4 @@ class Readline(AutotoolsPackage, GNUMirrorPackage): ...@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment