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:
Thomas Gruber 2019-05-01 01:41:08 +02:00 committed by Peter Scheibel
parent 7b715564d0
commit 06ed77bdfa

View file

@ -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