diff options
Diffstat (limited to 'cgit.mk')
-rw-r--r-- | cgit.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -68,6 +68,14 @@ ifeq ($(findstring BSD,$(uname_S)),) | |||
68 | CGIT_LIBS += -ldl | 68 | CGIT_LIBS += -ldl |
69 | endif | 69 | endif |
70 | 70 | ||
71 | # glibc 2.1+ offers sendfile which the most common C library on Linux | ||
72 | ifeq ($(uname_S),Linux) | ||
73 | HAVE_LINUX_SENDFILE = YesPlease | ||
74 | endif | ||
75 | |||
76 | ifdef HAVE_LINUX_SENDFILE | ||
77 | CGIT_CFLAGS += -DHAVE_LINUX_SENDFILE | ||
78 | endif | ||
71 | 79 | ||
72 | CGIT_OBJ_NAMES += cgit.o | 80 | CGIT_OBJ_NAMES += cgit.o |
73 | CGIT_OBJ_NAMES += cache.o | 81 | CGIT_OBJ_NAMES += cache.o |