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:
58
58
- compiler : gcc
59
59
env :
60
60
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"
62
62
os : linux
63
63
- compiler : gcc
64
64
env :
65
65
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"
67
67
os : linux
68
68
allow_failures :
69
69
- env : COVERITY=1
Original file line number Diff line number Diff line change @@ -284,8 +284,13 @@ ELSEIF(SHA1_BACKEND STREQUAL "CommonCrypto")
284
284
ELSEIF (SHA1_BACKEND STREQUAL "mbedTLS" )
285
285
ADD_FEATURE_INFO (SHA ON "using mbedTLS" )
286
286
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} )
289
294
ELSE ()
290
295
MESSAGE (FATAL_ERROR "Asked for unknown SHA1 backend ${SHA1_BACKEND} " )
291
296
ENDIF ()
You can’t perform that action at this time.
0 commit comments