Skip to content

Commit 54eddc5

Browse files
committed
Detect macOS produced libgit2.dylib on Darwin
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 1497edc commit 54eddc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ ifneq ($(LIBGIT2_VERSION),$(SYSTEM_LIBGIT2_VERSION))
3737
LIBGIT2_FORCE ?= 1
3838
endif
3939

40+
ifeq ($(shell uname -s),Darwin)
41+
LIBGIT2 := $(LIBGIT2_LIB_PATH)/libgit2.$(LIBGIT2_VERSION).dylib
42+
endif
43+
4044
# API (doc) generation utilities
4145
CONTROLLER_GEN_VERSION ?= v0.5.0
4246
GEN_API_REF_DOCS_VERSION ?= 0.3.0

0 commit comments

Comments
 (0)