Aded Option to Disable Shared Lua library Generation (#15758)
* Aded Option to Disable Shared Lua library Added option to disable generation of shared object library for lua to avoid build issues on static only platforms * Fixed Flake8 Issue with Lua Spackage Fixed indentation issue with lua spackage
This commit is contained in:
parent
abdada03a8
commit
8d1e88658d
1 changed files with 8 additions and 4 deletions
|
@ -27,6 +27,9 @@ class Lua(Package):
|
|||
version('5.1.4', sha256='b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3a')
|
||||
version('5.1.3', sha256='6b5df2edaa5e02bf1a2d85e1442b2e329493b30b0c0780f77199d24f087d296d')
|
||||
|
||||
variant('shared', default=True,
|
||||
description='Builds a shared version of the library')
|
||||
|
||||
extendable = True
|
||||
|
||||
depends_on('ncurses')
|
||||
|
@ -58,6 +61,7 @@ def install(self, spec, prefix):
|
|||
make('INSTALL_TOP=%s' % prefix,
|
||||
'install')
|
||||
|
||||
if '+shared' in spec:
|
||||
static_to_shared_library(join_path(prefix.lib, 'liblua.a'),
|
||||
arguments=['-lm', '-ldl'],
|
||||
version=self.version,
|
||||
|
|
Loading…
Reference in a new issue