diff options
author | Hiltjo Posthuma <[email protected]> | 2022-07-26 23:50:40 +0200 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2022-07-26 23:50:40 +0200 |
commit | 174ea5d6fee240ec5df3afabfea1c5ce1319e3ea (patch) | |
tree | 603da9b92ec693b00ce7c6e16bdad0a8854c8306 | |
parent | 289045115432562f5fb4ddc721bd9008e8df4ad5 (diff) | |
download | stagit-174ea5d6fee240ec5df3afabfea1c5ce1319e3ea.tar.gz stagit-174ea5d6fee240ec5df3afabfea1c5ce1319e3ea.zip |
Makefile: add workaround for distros still using older libgit2 versions
Noticed on Void Linux, Debian, etc.
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,6 +16,10 @@ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS} STAGIT_LDFLAGS = ${LIBGIT_LIB} ${LDFLAGS} STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE +# Uncomment to enable workaround for older libgit2 which don't support this +# option. This workaround will be removed in the future *pinky promise*. +#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1 + SRC = \ stagit.c\ stagit-index.c |