f673831272
It didn't do too much and I didn't notice that CRYPTO_sysrand wasn't OPENSSL_EXPORTed, which makes the test impossible on shared-library builds. Change-Id: I38986572aa34fa9c0f30075d562b8ee4e1a0c8b8
25 lines
296 B
CMake
25 lines
296 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
RAND_ARCH_SOURCES
|
|
|
|
rdrand-x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
rand
|
|
|
|
OBJECT
|
|
|
|
rand.c
|
|
urandom.c
|
|
windows.c
|
|
hwrand.c
|
|
|
|
${RAND_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
|