summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-01-10 13:44:53 -0800
committerErik Schnetter <schnetter@gmail.com>2016-01-10 13:44:53 -0800
commit992b9c46dd432ad409025a3cbaeb1c06f880526c (patch)
tree410ab2d7fb04a44eab6e83d75b21e064b958ddb2
parent7ad3e2b56bca4aca3a1ed5a157380070ea17514f (diff)
downloadspack-992b9c46dd432ad409025a3cbaeb1c06f880526c.tar.gz
spack-992b9c46dd432ad409025a3cbaeb1c06f880526c.tar.bz2
spack-992b9c46dd432ad409025a3cbaeb1c06f880526c.tar.xz
spack-992b9c46dd432ad409025a3cbaeb1c06f880526c.zip
Resolve readline/ncurses dependency when building Lua
-rw-r--r--var/spack/packages/lua/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/packages/lua/package.py b/var/spack/packages/lua/package.py
index 6d8f7806d9..f0c949687e 100644
--- a/var/spack/packages/lua/package.py
+++ b/var/spack/packages/lua/package.py
@@ -18,11 +18,12 @@ class Lua(Package):
version('5.1.3', 'a70a8dfaa150e047866dc01a46272599')
depends_on('ncurses')
+ depends_on('readline')
def install(self, spec, prefix):
make('INSTALL_TOP=%s' % prefix,
- 'MYLDFLAGS="-L%s/lib -Wl,-rpath,%s"' % (spec['ncurses'].prefix,spec['ncurses'].prefix),
+ 'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib,
'linux')
make('INSTALL_TOP=%s' % prefix,
- 'MYLDFLAGS="-L%s/lib -Wl,-rpath,%s"' % (spec['ncurses'].prefix,spec['ncurses'].prefix),
+ 'MYLDFLAGS=-L%s -lncurses' % spec['ncurses'].prefix.lib,
'install')