mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 16:49:30 +00:00
Don't use the PPC native SHA1 :( CMake is refusing to acknowledge the sha1ppc.S ppc asm code.
This commit is contained in:
parent
c3f7a9386d
commit
4c650c2b80
@ -23,8 +23,8 @@ STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_V
|
||||
STRING(REGEX REPLACE "^.*LIBGIT2_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" LIBGIT2_VERSION_REV "${GIT2_HEADER}")
|
||||
SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}.${LIBGIT2_VERSION_MINOR}.${LIBGIT2_VERSION_REV}")
|
||||
|
||||
# Comment out the line below to use OpenSSL SHA1
|
||||
SET(SHA1_TYPE "ppc")
|
||||
# Uncomment out the line below to use PowerPC SHA1
|
||||
#SET(SHA1_TYPE "ppc")
|
||||
|
||||
# Find required dependencies
|
||||
INCLUDE_DIRECTORIES(src include deps/http-parser)
|
||||
@ -34,7 +34,7 @@ FILE(GLOB SRC_HTTP deps/http-parser/*.c)
|
||||
# Specify sha1 implementation
|
||||
IF (SHA1_TYPE STREQUAL "ppc")
|
||||
ADD_DEFINITIONS(-DPPC_SHA1)
|
||||
FILE(GLOB SRC_SHA1 src/ppc/*.c)
|
||||
FILE(GLOB SRC_SHA1 src/ppc/*.c src/ppc/*.S)
|
||||
ELSE ()
|
||||
SET (SRC_SHA1)
|
||||
ENDIF()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user