From cdb477b7983a3ddb58fac8d3f9b965226d668206 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Tue, 19 Mar 2024 17:48:35 +1300 Subject: [PATCH] configure: link with -E Fixes the error 'undefined symbol: lua_gettop' when trying to load external Lua shared object libraries. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 50a0852..ed5911d 100755 --- a/configure +++ b/configure @@ -9,7 +9,7 @@ mkf=config.mk cflags='-std=c99' cppflags='' ext_cppflags='-DLUA_USE_POSIX -DLUA_USE_DLOPEN' -ldflags='-lm' +ldflags='-lm -Wl,-E' # optional libraries to build with support for; a dynamically # linked Lua 5.4 library may be supported here later optlibs='readline'