lua: fix linking to ncurses (#17206)

PR #17108 broke the build. Spack's ncurses package does not provide a
libtermcap, so we need to use libtinfow.
This commit is contained in:
Michael Kuhn 2020-06-23 08:30:45 +02:00 committed by GitHub
parent 735416dbf4
commit 55f26b0ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ def install(self, spec, prefix):
'MYLDFLAGS=-L%s -L%s' % ( 'MYLDFLAGS=-L%s -L%s' % (
spec['readline'].prefix.lib, spec['readline'].prefix.lib,
spec['ncurses'].prefix.lib), spec['ncurses'].prefix.lib),
'MYLIBS=-lncursesw -ltermcap', 'MYLIBS=-lncursesw -ltinfow',
'CC=%s -std=gnu99 %s' % (spack_cc, 'CC=%s -std=gnu99 %s' % (spack_cc,
self.compiler.cc_pic_flag), self.compiler.cc_pic_flag),
target) target)