projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2890451
)
Makefile: add workaround for distros still using older libgit2 versions
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 26 Jul 2022 21:50:40 +0000
(23:50 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 26 Jul 2022 21:50:40 +0000
(23:50 +0200)
Noticed on Void Linux, Debian, etc.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 0c03f81996732db9c2b469b3c37cff1b0591df8b..e28083e55b9f91ce7a17fe1957992f095098c753 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-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