[PATCH] build system: switch to luajit instead of lua

Jason A. Donenfeld Jason at zx2c4.com
Mon Jan 13 05:26:46 CET 2014


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 <Jason at zx2c4.com>
---
 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



More information about the CGit mailing list