aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9ce99d..cecaafe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,6 @@ endif()
46 46
47add_definitions(-DLIBRESSL_INTERNAL) 47add_definitions(-DLIBRESSL_INTERNAL)
48add_definitions(-DOPENSSL_NO_HW_PADLOCK) 48add_definitions(-DOPENSSL_NO_HW_PADLOCK)
49add_definitions(-DOPENSSL_NO_ASM)
50 49
51set(CMAKE_POSITION_INDEPENDENT_CODE true) 50set(CMAKE_POSITION_INDEPENDENT_CODE true)
52 51
@@ -182,6 +181,14 @@ if(HAVE_ERR_H)
182 add_definitions(-DHAVE_ERR_H) 181 add_definitions(-DHAVE_ERR_H)
183endif() 182endif()
184 183
184if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF" AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM)
185 set(HOST_ASM_ELF_X86_64 true)
186endif()
187
188if(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM)
189 set(HOST_ASM_MACOSX_X86_64 true)
190endif()
191
185set(OPENSSL_LIBS ssl crypto) 192set(OPENSSL_LIBS ssl crypto)
186if(CMAKE_HOST_WIN32) 193if(CMAKE_HOST_WIN32)
187 set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) 194 set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32)