Merge pull request #15 from Steveice10/cherry_picks
Cherry pick some build fixes from upstream
This commit is contained in:
commit
d4fc7348a3
@ -299,6 +299,15 @@ if(HAVE_NETINET_IP_H)
|
|||||||
add_definitions(-DHAVE_NETINET_IP_H)
|
add_definitions(-DHAVE_NETINET_IP_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# This isn't ready for universal binaries yet, since we do conditional
|
||||||
|
# compilation based on the architecture, but this makes cross compiling for a
|
||||||
|
# single architecture work on macOS at least.
|
||||||
|
#
|
||||||
|
# Don't set CMAKE_OSX_ARCHITECTURES to more than a single value for now.
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_OSX_ARCHITECTURES}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(aarch64|arm64)")
|
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(aarch64|arm64)")
|
||||||
set(HOST_AARCH64 true)
|
set(HOST_AARCH64 true)
|
||||||
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
|
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
|
||||||
|
@ -996,7 +996,8 @@ target_include_directories(crypto_obj
|
|||||||
x509
|
x509
|
||||||
../include/compat
|
../include/compat
|
||||||
PUBLIC
|
PUBLIC
|
||||||
../include)
|
../include
|
||||||
|
${CMAKE_BINARY_DIR}/include)
|
||||||
|
|
||||||
if(HOST_AARCH64)
|
if(HOST_AARCH64)
|
||||||
target_include_directories(crypto_obj PRIVATE bn/arch/aarch64/)
|
target_include_directories(crypto_obj PRIVATE bn/arch/aarch64/)
|
||||||
|
@ -19,4 +19,4 @@ elseif(HOST_SPARC64)
|
|||||||
elseif(HOST_X86_64)
|
elseif(HOST_X86_64)
|
||||||
file(READ arch/amd64/opensslconf.h OPENSSLCONF)
|
file(READ arch/amd64/opensslconf.h OPENSSLCONF)
|
||||||
endif()
|
endif()
|
||||||
file(WRITE openssl/opensslconf.h "${OPENSSLCONF}")
|
file(WRITE ${CMAKE_BINARY_DIR}/include/openssl/opensslconf.h "${OPENSSLCONF}")
|
||||||
|
@ -69,7 +69,8 @@ target_include_directories(ssl_obj
|
|||||||
../crypto/bio
|
../crypto/bio
|
||||||
../include/compat
|
../include/compat
|
||||||
PUBLIC
|
PUBLIC
|
||||||
../include)
|
../include
|
||||||
|
${CMAKE_BINARY_DIR}/include)
|
||||||
|
|
||||||
add_library(bs_obj OBJECT ${BS_SRC})
|
add_library(bs_obj OBJECT ${BS_SRC})
|
||||||
target_include_directories(bs_obj
|
target_include_directories(bs_obj
|
||||||
|
@ -45,7 +45,8 @@ target_include_directories(tls_obj
|
|||||||
.
|
.
|
||||||
../include/compat
|
../include/compat
|
||||||
PUBLIC
|
PUBLIC
|
||||||
../include)
|
../include
|
||||||
|
${CMAKE_BINARY_DIR}/include)
|
||||||
|
|
||||||
add_library(tls $<TARGET_OBJECTS:tls_obj> $<TARGET_OBJECTS:ssl_obj>
|
add_library(tls $<TARGET_OBJECTS:tls_obj> $<TARGET_OBJECTS:ssl_obj>
|
||||||
$<TARGET_OBJECTS:crypto_obj> empty.c)
|
$<TARGET_OBJECTS:crypto_obj> empty.c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user