This is almost entirely the wrong way to be doing things. If somebody
wants to cleanup this patch and the lua side of the build system, that
would be quite nice.

Signed-off-by: Jason A. Donenfeld <[email protected]>
---
 cgit.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cgit.mk b/cgit.mk
index 71bbe8b..1092113 100644
--- a/cgit.mk
+++ b/cgit.mk
@@ -28,7 +28,8 @@ endif
 ifdef NO_LUA
        CFLAGS += -DNO_LUA
 else
-       CGIT_LIBS += -llua
+       CGIT_LIBS += $(shell pkg-config --libs luajit)
+       CFLAGS += $(shell pkg-config --cflags luajit)
 endif
 
 CGIT_LIBS += -ldl
-- 
1.8.5.2

_______________________________________________
CGit mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to