configure: link with -E

Fixes the error 'undefined symbol: lua_gettop' when trying to load
external Lua shared object libraries.
This commit is contained in:
Jeremy Baxter 2024-03-19 17:48:35 +13:00
parent a1e01cf3c3
commit cdb477b798

2
configure vendored
View file

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