Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorDoug Hogan <doug@acyclic.org>2015-07-10 04:34:57 +0300
committerAdam Langley <agl@google.com>2015-07-10 04:51:16 +0300
commita5e2915ba1e232c57538b821511e6d22d32b4d40 (patch)
treed305abefb918a7fb6eb0cbf6bf942d3360dd1368 /tool
parentecdf7f9986c64dbace56bc039f2922ea76063555 (diff)
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>
Diffstat (limited to 'tool')
-rw-r--r--tool/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
index 79077455..2d706baf 100644
--- a/tool/CMakeLists.txt
+++ b/tool/CMakeLists.txt
@@ -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()