summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Scogland <scogland1@llnl.gov>2016-05-16 03:36:31 -0700
committerTom Scogland <scogland1@llnl.gov>2016-05-16 03:36:31 -0700
commit52c359bc77d1f790157ab9f74c31edae262d106c (patch)
treefa7062357b3a3788b447c0d443d9f40f9a61283e
parentb7aa47a17822f49cdff50cda165367957ee20a73 (diff)
downloadspack-52c359bc77d1f790157ab9f74c31edae262d106c.tar.gz
spack-52c359bc77d1f790157ab9f74c31edae262d106c.tar.bz2
spack-52c359bc77d1f790157ab9f74c31edae262d106c.tar.xz
spack-52c359bc77d1f790157ab9f74c31edae262d106c.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/lua/package.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py
index 639b4dd15a..5e9c8e36ee 100644
--- a/var/spack/repos/builtin/packages/lua/package.py
+++ b/var/spack/repos/builtin/packages/lua/package.py
@@ -62,9 +62,18 @@ class Lua(Package):
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')):