summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2022-04-21 02:29:25 -0500
committerLibravatar Terin Stock <terinjokes@gmail.com>2022-04-21 02:29:25 -0500
commitb1c774848f4208c77e9b8e9930752ec76e213e16 (patch)
tree7c5df641323e5334a85e3eb317fbdf04b61a9d84
parentGit 2.36 (diff)
downloadtgif-b1c774848f4208c77e9b8e9930752ec76e213e16.tar.xz
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.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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