Skip to content

Commit 3db1c62

Browse files
authored
libgit2: Always use the bundled PCRE library. (JuliaLang#56129)
This is how Yggdrasil builds the library.
1 parent 80e60c8 commit 3db1c62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/libgit2.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ ifneq (,$(findstring $(OS),Linux FreeBSD OpenBSD))
4242
LIBGIT2_OPTS += -DUSE_HTTPS="mbedTLS" -DUSE_SHA1="CollisionDetection" -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
4343
endif
4444

45+
# use the bundled distribution of libpcre. we should consider linking against the
46+
# pcre2 library we're building anyway, but this is currently how Yggdrasil does it.
47+
LIBGIT2_OPTS += -DREGEX_BACKEND="builtin"
48+
4549
LIBGIT2_SRC_PATH := $(SRCCACHE)/$(LIBGIT2_SRC_DIR)
4650

4751
$(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured: $(LIBGIT2_SRC_PATH)/source-extracted

0 commit comments

Comments
 (0)