Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
678fa45b
Unverified
Commit
678fa45b
authored
Jun 15, 2018
by
Patrick Steinhardt
Committed by
GitHub
Jun 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4678 from staticfloat/sf/mbedtls_linkage
Link `mbedTLS` libraries in when `SHA1_BACKEND` == "mbedTLS"
parents
c103616f
82849b96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
.travis.yml
+2
-2
src/CMakeLists.txt
+7
-2
No files found.
.travis.yml
View file @
678fa45b
...
@@ -58,12 +58,12 @@ matrix:
...
@@ -58,12 +58,12 @@ matrix:
-
compiler
:
gcc
-
compiler
:
gcc
env
:
env
:
MBEDTLS=1
MBEDTLS=1
OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_HTTPS=mbedTLS -D
SHA1_BACKEND=mbedTLS -D
MBEDTLS_ROOT_DIR=../deps/mbedtls"
os
:
linux
os
:
linux
-
compiler
:
gcc
-
compiler
:
gcc
env
:
env
:
MBEDTLS=1
MBEDTLS=1
OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DUSE_HTTPS=mbedTLS -DMBEDTLS_ROOT_DIR=../deps/mbedtls"
OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DUSE_HTTPS=mbedTLS -D
SHA1_BACKEND=mbedTLS -D
MBEDTLS_ROOT_DIR=../deps/mbedtls"
os
:
linux
os
:
linux
allow_failures
:
allow_failures
:
-
env
:
COVERITY=1
-
env
:
COVERITY=1
...
...
src/CMakeLists.txt
View file @
678fa45b
...
@@ -284,8 +284,13 @@ ELSEIF(SHA1_BACKEND STREQUAL "CommonCrypto")
...
@@ -284,8 +284,13 @@ ELSEIF(SHA1_BACKEND STREQUAL "CommonCrypto")
ELSEIF (SHA1_BACKEND STREQUAL "
mbedTLS
")
ELSEIF (SHA1_BACKEND STREQUAL "
mbedTLS
")
ADD_FEATURE_INFO(SHA ON "
using mbedTLS
")
ADD_FEATURE_INFO(SHA ON "
using mbedTLS
")
SET(GIT_SHA1_MBEDTLS 1)
SET(GIT_SHA1_MBEDTLS 1)
FILE(GLOB SRC_SHA1 src/hash/hash_mbedtls.c)
FILE(GLOB SRC_SHA1 hash/hash_mbedtls.c)
LIST(APPEND LIBGIT2_PC_REQUIRES "
mbedtls
")
LIST(APPEND LIBGIT2_INCLUDES
${
MBEDTLS_INCLUDE_DIR
}
)
LIST(APPEND LIBGIT2_LIBS
${
MBEDTLS_LIBRARIES
}
)
# mbedTLS has no pkgconfig file, hence we can't require it
# https://github.com/ARMmbed/mbedtls/issues/228
# For now, pass its link flags as our own
LIST(APPEND LIBGIT2_PC_LIBS
${
MBEDTLS_LIBRARIES
}
)
ELSE()
ELSE()
MESSAGE(FATAL_ERROR "
Asked for unknown SHA1 backend
${
SHA1_BACKEND
}
")
MESSAGE(FATAL_ERROR "
Asked for unknown SHA1 backend
${
SHA1_BACKEND
}
")
ENDIF()
ENDIF()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment