From 06ed77bdfa53174e31ca7c8ce25c660aa5c03224 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Wed, 1 May 2019 01:41:08 +0200 Subject: 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. --- var/spack/repos/builtin/packages/lua/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') 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 @@ class Lua(Package): '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 -- cgit v1.2.3-60-g2f50