about summary refs log tree commit diff stats
path: root/cgit.mk
diff options
context:
space:
mode:
authorJune McEnroe2021-01-20 13:33:37 -0500
committerJune McEnroe2022-02-13 18:24:04 -0500
commitd993e4be6731b1a806e2c7588334a3f485a5fd31 (patch)
tree3d6276d4a791560a48d9481c31b9e7eba9fcc2a6 /cgit.mk
parentMerge remote-tracking branch 'ch/git-2-35' (diff)
downloadcgit-d993e4be6731b1a806e2c7588334a3f485a5fd31.tar.gz
cgit-d993e4be6731b1a806e2c7588334a3f485a5fd31.zip
Remove Lua support
Lua support is unused and the dlsym fwrite/write hacks horrify me.
Clean it up.
Diffstat (limited to 'cgit.mk')
-rw-r--r--cgit.mk27
1 files changed, 0 insertions, 27 deletions
diff --git a/cgit.mk b/cgit.mk index 3fcc1ca..5b9ed5b 100644 --- a/cgit.mk +++ b/cgit.mk
@@ -27,32 +27,6 @@ ifdef NO_C99_FORMAT
27 CFLAGS += -DNO_C99_FORMAT 27 CFLAGS += -DNO_C99_FORMAT
28endif 28endif
29 29
30ifdef NO_LUA
31 LUA_MESSAGE := linking without specified Lua support
32 CGIT_CFLAGS += -DNO_LUA
33else
34ifeq ($(LUA_PKGCONFIG),)
35 LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.2 lua5.1; do \
36 $(PKG_CONFIG) --exists $$pc 2>/dev/null && echo $$pc && break; \
37 done)
38 LUA_MODE := autodetected
39else
40 LUA_MODE := specified
41endif
42ifneq ($(LUA_PKGCONFIG),)
43 LUA_MESSAGE := linking with $(LUA_MODE) $(LUA_PKGCONFIG)
44 LUA_LIBS := $(shell $(PKG_CONFIG) --libs $(LUA_PKGCONFIG) 2>/dev/null)
45 LUA_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(LUA_PKGCONFIG) 2>/dev/null)
46 CGIT_LIBS += $(LUA_LIBS)
47 CGIT_CFLAGS += $(LUA_CFLAGS)
48else
49 LUA_MESSAGE := linking without autodetected Lua support
50 NO_LUA := YesPlease
51 CGIT_CFLAGS += -DNO_LUA
52endif
53
54endif
55
56# Add -ldl to linker flags on systems that commonly use GNU libc. 30# Add -ldl to linker flags on systems that commonly use GNU libc.
57ifneq (,$(filter $(uname_S),Linux GNU GNU/kFreeBSD)) 31ifneq (,$(filter $(uname_S),Linux GNU GNU/kFreeBSD))
58 CGIT_LIBS += -ldl 32 CGIT_LIBS += -ldl
@@ -130,7 +104,6 @@ $(CGIT_OBJS): %.o: %.c GIT-CFLAGS $(CGIT_PREFIX)CGIT-CFLAGS $(missing_dep_dirs)
130 $(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(CGIT_CFLAGS) $< 104 $(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(CGIT_CFLAGS) $<
131 105
132$(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS $(GITLIBS) 106$(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS $(GITLIBS)
133 @echo 1>&1 " * $(LUA_MESSAGE)"
134 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) $(CGIT_LIBS) 107 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) $(CGIT_LIBS)
135 108
136CGIT_SP_OBJS := $(patsubst %.o,%.sp,$(CGIT_OBJS)) 109CGIT_SP_OBJS := $(patsubst %.o,%.sp,$(CGIT_OBJS))