From dfb81afddb16b10a500a159b92af8891dc78f760 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Mon, 18 Mar 2024 09:47:21 +1300 Subject: [PATCH] configure: compile Lua with -DLUA_USE_DLOPEN Fixes errors when trying to load external dynamic libraries at runtime. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index dcf2cc8..50a0852 100755 --- a/configure +++ b/configure @@ -8,7 +8,7 @@ mkf=config.mk # these also apply to all libraries in external/ cflags='-std=c99' cppflags='' -ext_cppflags='-DLUA_USE_POSIX' +ext_cppflags='-DLUA_USE_POSIX -DLUA_USE_DLOPEN' ldflags='-lm' # optional libraries to build with support for; a dynamically # linked Lua 5.4 library may be supported here later