Files
gentoo/app-crypt/ekeyd/files/ekeyd-1.1.5-makefile-lua-libs.patch
Marek Szuba a493d13cd0 app-crypt/ekeyd: migrate to lua-single.eclass
Confirmed not to work with lua5.2 - linking ekeyd fails with

host/lstate.c:430: undefined reference to `luaL_register' .

In light of the above and given the age of this code, didn't even bother
testing it with 5.3 and 5.4.

Closes: https://bugs.gentoo.org/752894
Signed-off-by: Marek Szuba <marecki@gentoo.org>
2020-11-24 14:15:33 +01:00

16 lines
355 B
Diff

If LUA_V is passed directly to LIBS it ends up being expanded to an empty
string at link time.
--- a/host/Makefile
+++ b/host/Makefile
@@ -111,7 +111,8 @@
CFLAGS += '-DEKEYD_VERSION_S=""$(EKEYD_VERSION_S)""'
CFLAGS += $(EXTRA_CFLAGS)
-LIBS += -llua -lm $(LIBDL)
+LUA_LIBS += -llua$(LUA_V) -lm
+LIBS += $(LUA_LIBS) $(LIBDL)
LDFLAGS += $(LIBDIRS)