File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ matrix:
5858 - compiler : gcc
5959 env :
6060 MBEDTLS=1
61- OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
61+ OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS - DMBEDTLS_ROOT_DIR=../deps/mbedtls"
6262 os : linux
6363 - compiler : gcc
6464 env :
6565 MBEDTLS=1
66- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
66+ OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DUSE_HTTPS=mbedTLS -DSHA1_BACKEND=mbedTLS - DMBEDTLS_ROOT_DIR=../deps/mbedtls"
6767 os : linux
6868 allow_failures :
6969 - env : COVERITY=1
Original file line number Diff line number Diff line change @@ -284,8 +284,13 @@ ELSEIF(SHA1_BACKEND STREQUAL "CommonCrypto")
284284ELSEIF (SHA1_BACKEND STREQUAL "mbedTLS" )
285285 ADD_FEATURE_INFO(SHA ON "using mbedTLS" )
286286 SET (GIT_SHA1_MBEDTLS 1)
287- FILE (GLOB SRC_SHA1 src/hash/hash_mbedtls.c)
288- LIST (APPEND LIBGIT2_PC_REQUIRES "mbedtls" )
287+ FILE (GLOB SRC_SHA1 hash/hash_mbedtls.c)
288+ LIST (APPEND LIBGIT2_INCLUDES ${MBEDTLS_INCLUDE_DIR} )
289+ LIST (APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES} )
290+ # mbedTLS has no pkgconfig file, hence we can't require it
291+ # https://github.com/ARMmbed/mbedtls/issues/228
292+ # For now, pass its link flags as our own
293+ LIST (APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LIBRARIES} )
289294ELSE ()
290295 MESSAGE (FATAL_ERROR "Asked for unknown SHA1 backend ${SHA1_BACKEND} " )
291296ENDIF ()
You can’t perform that action at this time.
0 commit comments