mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
16 lines
355 B
Diff
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)
|
|
|
|
|