Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make USE_MBEDTLS option default to OFF
otherwise on Mac we're linking to both the system tls library
and mbedtls, and that doesn't work
  • Loading branch information
tkelman committed Sep 24, 2016
commit f241e23db214f008baef80bf6bcf75a6c7efe5f9
2 changes: 1 addition & 1 deletion deps/libgit2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ LIBGIT2_OPTS += -DCURL_INCLUDE_DIRS=$(build_includedir) -DCURL_LIBRARIES="-L$(bu
endif

ifeq ($(OS),Linux)
LIBGIT2_OPTS += -DUSE_OPENSSL=OFF -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
LIBGIT2_OPTS += -DUSE_OPENSSL=OFF -DUSE_MBEDTLS=ON -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
endif

$(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR)/libgit2-ssh.patch-applied: $(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR)/source-extracted
Expand Down
2 changes: 1 addition & 1 deletion deps/patches/libgit2-mbedtls.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index c79b263..ee37d05 100644
ENDIF()

+IF (NOT USE_OPENSSL)
+ OPTION( USE_MBEDTLS "Link with and use mbedtls library" ON )
+ OPTION( USE_MBEDTLS "Link with and use mbedtls library" OFF )
+ENDIF()
+
# This variable will contain the libraries we need to put into
Expand Down