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:
parent
b7aa47a178
commit
52c359bc77
@ -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')):
|
||||
|
Loading…
Reference in New Issue
Block a user