List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] build system: switch to luajit instead of lua
@ 2014-01-13  4:26 Jason
  2014-01-13  4:28 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: Jason @ 2014-01-13  4:26 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] build system: switch to luajit instead of lua
  2014-01-13  4:26 [PATCH] build system: switch to luajit instead of lua Jason
@ 2014-01-13  4:28 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2014-01-13  4:28 UTC (permalink / raw)


We probably don't want to use pkg-config, and maybe this isn't how we
even want to be controlling lua compilation. I'm all ears here on how
the Makefile part of this should be handled.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-13  4:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13  4:26 [PATCH] build system: switch to luajit instead of lua Jason
2014-01-13  4:28 ` Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).