aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.mk')
-rw-r--r--cgit.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgit.mk b/cgit.mk
index 056c3f9..3b8b79a 100644
--- a/cgit.mk
+++ b/cgit.mk
@@ -68,6 +68,14 @@ ifeq ($(findstring BSD,$(uname_S)),)
68 CGIT_LIBS += -ldl 68 CGIT_LIBS += -ldl
69endif 69endif
70 70
71# glibc 2.1+ offers sendfile which the most common C library on Linux
72ifeq ($(uname_S),Linux)
73 HAVE_LINUX_SENDFILE = YesPlease
74endif
75
76ifdef HAVE_LINUX_SENDFILE
77 CGIT_CFLAGS += -DHAVE_LINUX_SENDFILE
78endif
71 79
72CGIT_OBJ_NAMES += cgit.o 80CGIT_OBJ_NAMES += cgit.o
73CGIT_OBJ_NAMES += cache.o 81CGIT_OBJ_NAMES += cache.o