diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index 6d467866fd..3ad1f0fdaf 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -58,7 +58,8 @@ def install(self, spec, prefix): 'install') 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)) # compatibility with ax_lua.m4 from autoconf-archive