Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
" HAVE_FUNC_ATTRIBUTE_VISIBILITY) | " HAVE_FUNC_ATTRIBUTE_VISIBILITY) | ||||
check_cxx_source_compiles(" | check_cxx_source_compiles(" | ||||
__declspec(dllexport) int main() { | __declspec(dllexport) int main() { | ||||
return 0; | return 0; | ||||
} | } | ||||
" HAVE_FUNC_ATTRIBUTE_DLLEXPORT) | " HAVE_FUNC_ATTRIBUTE_DLLEXPORT) | ||||
#__fdelt_chk's params and return type have changed from long unsigned int to | |||||
# long int. See which one is present here. | |||||
include(CheckPrototypeDefinition) | |||||
set(CMAKE_REQUIRED_DEFINITIONS -D_FORTIFY_SOURCE=2) | |||||
# Without some optimization the compiler won't detect the prototype conflict | |||||
# and always succeed to build. | |||||
set(CMAKE_REQUIRED_FLAGS -O2) | |||||
check_prototype_definition( | |||||
__fdelt_warn | |||||
"extern long unsigned int __fdelt_warn(long unsigned int a)" | |||||
"0" | |||||
"sys/select.h" | |||||
FDELT_PROTOTYPE_LONG_UNSIGNED_INT | |||||
) | |||||
if(FDELT_PROTOTYPE_LONG_UNSIGNED_INT) | |||||
set(FDELT_TYPE "long unsigned int") | |||||
else() | |||||
set(FDELT_TYPE "long int") | |||||
endif() | |||||
# OpenSSL functionality | # OpenSSL functionality | ||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | ||||
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | ||||
check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | ||||
# Activate wallet | # Activate wallet | ||||
set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | ||||
Show All 23 Lines |