Lua: Fix unresolved symbols in shared library by linking with libdl.so (#11260)
The current lua package.py does not link with libdl.so, so you get unresolved symbols while linking with lua. This PR adds libdl to fix the issue.
This commit is contained in:
parent
7b715564d0
commit
06ed77bdfa
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ def install(self, spec, prefix):
|
||||||
'install')
|
'install')
|
||||||
|
|
||||||
static_to_shared_library(join_path(prefix.lib, 'liblua.a'),
|
static_to_shared_library(join_path(prefix.lib, 'liblua.a'),
|
||||||
arguments=['-lm'], version=self.version,
|
arguments=['-lm', '-ldl'],
|
||||||
|
version=self.version,
|
||||||
compat_version=self.version.up_to(2))
|
compat_version=self.version.up_to(2))
|
||||||
|
|
||||||
# compatibility with ax_lua.m4 from autoconf-archive
|
# compatibility with ax_lua.m4 from autoconf-archive
|
||||||
|
|
Loading…
Reference in a new issue