diff options
author | Terin Stock <terinjokes@gmail.com> | 2022-04-21 02:29:25 -0500 |
---|---|---|
committer | Terin Stock <terinjokes@gmail.com> | 2022-04-21 02:29:25 -0500 |
commit | b1c774848f4208c77e9b8e9930752ec76e213e16 (patch) | |
tree | 7c5df641323e5334a85e3eb317fbdf04b61a9d84 | |
parent | 6cd33dceed60949e2dbc32e3f0f5e67c4c882e1e (diff) |
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-- | Makefile | 5 |
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 |