summaryrefslogtreecommitdiff
path: root/app-crypt/ekeyd/files/ekeyd-1.1.5-makefile-lua-libs.patch
blob: 7a929bdb64c056cfe62618bce486f03bb84f84c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)