From: Lars Hjemli Date: Sat, 11 Oct 2008 18:21:06 +0000 (+0200) Subject: Makefile: enable compilation on uclibc X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/efaccb3d6ab7abc459681e27b6c9b2d8119333eb Makefile: enable compilation on uclibc Original-patch-by: Natanael Copa Signed-off-by: Lars Hjemli --- diff --git a/Makefile b/Makefile index 3ee2a59..3c27422 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,9 @@ CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' +ifdef NO_ICONV + CFLAGS += -DNO_ICONV +endif cgit: $(OBJECTS) libgit $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o cgit $(OBJECTS) $(EXTLIBS)