Fix build on Unix systems without POSIX realtime extensions.
This allows BoringSSL to build on OpenBSD with gcc/g++ 4.9.2. Change-Id: Icce23de87b0358a581124eb8cd37dc48a1f096c9 Reviewed-on: https://boringssl-review.googlesource.com/5401 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
ecdf7f9986
commit
a5e2915ba1
@ -19,5 +19,10 @@ add_executable(
|
||||
if (APPLE OR WIN32 OR ANDROID)
|
||||
target_link_libraries(bssl ssl crypto)
|
||||
else()
|
||||
target_link_libraries(bssl ssl crypto -lrt)
|
||||
find_library(FOUND_LIBRT rt)
|
||||
if (FOUND_LIBRT)
|
||||
target_link_libraries(bssl ssl crypto -lrt)
|
||||
else()
|
||||
target_link_libraries(bssl ssl crypto)
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user