Added LibreSSL as an alternative to OpenSSL. Needs more testing! (0.38.16)
This commit is contained in:
parent
d1d4adbf2c
commit
3e0d47a268
35 changed files with 677 additions and 38 deletions
|
|
@ -37,7 +37,8 @@ foreach(var_pair
|
|||
LIBXML2
|
||||
TCL
|
||||
NOTCURSES
|
||||
OPENSSL)
|
||||
OPENSSL
|
||||
LIBRESSL)
|
||||
if(${var_pair}_INCLUDE_DIRS)
|
||||
target_include_directories(fun_core PRIVATE ${${var_pair}_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
|
@ -94,6 +95,12 @@ if(FUN_WITH_OPENSSL)
|
|||
target_compile_definitions(fun_core PUBLIC FUN_WITH_OPENSSL=1)
|
||||
endif()
|
||||
|
||||
# LibreSSL toggle: ensure compile definitions are applied to fun_core so
|
||||
# the LibreSSL code paths are compiled, and linking vars are handled above.
|
||||
if(FUN_WITH_LIBRESSL)
|
||||
target_compile_definitions(fun_core PUBLIC FUN_WITH_LIBRESSL=1)
|
||||
endif()
|
||||
|
||||
# Workaround: provide a dummy rust_eh_personality to satisfy linker when using
|
||||
# no_std Rust staticlib with panic abort (some toolchains still reference it).
|
||||
# If needed, we could add a C shim here, but the Rust crate now defines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue