fix linking issue on ubuntu

Evidently some readline variants are built with only a dynamic dependency on
ncurses, this addresses that problem for such systems.
This commit is contained in:
Tom Scogland 2016-05-16 03:36:31 -07:00
parent b7aa47a178
commit 52c359bc77

View File

@ -62,9 +62,18 @@ def install(self, spec, prefix):
else:
target = 'linux'
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib, target)
'MYLDFLAGS=-L%s -L%s ' % (
spec['readline'].prefix.lib,
spec['ncurses'].prefix.lib
),
'MYLIBS=-lncurses',
target)
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib,
'MYLDFLAGS=-L%s -L%s ' % (
spec['readline'].prefix.lib,
spec['ncurses'].prefix.lib
),
'MYLIBS=-lncurses',
'install')
with working_dir(os.path.join('luarocks', 'luarocks')):