From b1c774848f4208c77e9b8e9930752ec76e213e16 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Thu, 21 Apr 2022 02:29:25 -0500 Subject: Makefile: add support for SQLite3 Enables linking git executables against the SQLite3 dataabase engine, allowing for storing most of the small files of the gitdata directory in a single database file, and eliminating the need for packfiles. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f8bccfab5e..9e98d5344e 100644 --- a/Makefile +++ b/Makefile @@ -1438,6 +1438,11 @@ ifdef LIBPCREDIR EXTLIBS += -L$(LIBPCREDIR)/$(lib) $(CC_LD_DYNPATH)$(LIBPCREDIR)/$(lib) endif +ifneq (,$(USE_SQLITE)) + BASIC_CFLAGS += -DUSE_SQLITE + EXTLIBS += -lsqlite3 +endif + ifdef HAVE_ALLOCA_H BASIC_CFLAGS += -DHAVE_ALLOCA_H endif -- cgit v1.2.3