Skip to content

Commit

Permalink
libgit2: Always use the bundled PCRE library. (#56129)
Browse files Browse the repository at this point in the history
This is how Yggdrasil builds the library.
  • Loading branch information
maleadt authored Oct 13, 2024
1 parent 80e60c8 commit 3db1c62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/libgit2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ ifneq (,$(findstring $(OS),Linux FreeBSD OpenBSD))
LIBGIT2_OPTS += -DUSE_HTTPS="mbedTLS" -DUSE_SHA1="CollisionDetection" -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
endif

# use the bundled distribution of libpcre. we should consider linking against the
# pcre2 library we're building anyway, but this is currently how Yggdrasil does it.
LIBGIT2_OPTS += -DREGEX_BACKEND="builtin"

LIBGIT2_SRC_PATH := $(SRCCACHE)/$(LIBGIT2_SRC_DIR)

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

0 comments on commit 3db1c62

Please sign in to comment.