From f7041cb44ff57a56894a312ba2fdc8058ccfc6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20T=C3=A1mara=20Pati=C3=B1o?= Date: Tue, 11 Oct 2022 02:32:49 -0500 Subject: [PATCH] Can compile in OpenBSD/adJ. Closes #337 (#430) * Updating abseil-cpp to version of 14th April 2022 that supports OpenBSD/adJ * Not using dl in OpenBSD/adJ --- crypto/CMakeLists.txt | 7 ++++++- third-party/abseil-cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index c8c85370..fab75bfc 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -275,7 +275,12 @@ target_include_directories(ton_crypto PUBLIC $) target_link_libraries(ton_crypto PUBLIC ${OPENSSL_CRYPTO_LIBRARY} tdutils tddb_utils) if (NOT WIN32) - target_link_libraries(ton_crypto PUBLIC dl z) + find_library(DL dl) + if (DL) + target_link_libraries(ton_crypto PUBLIC dl z) + else() + target_link_libraries(ton_crypto PUBLIC z) + endif() endif() target_include_directories(ton_crypto SYSTEM PUBLIC $) diff --git a/third-party/abseil-cpp b/third-party/abseil-cpp index 21510581..8c6e53ef 160000 --- a/third-party/abseil-cpp +++ b/third-party/abseil-cpp @@ -1 +1 @@ -Subproject commit 215105818dfde3174fe799600bb0f3cae233d0bf +Subproject commit 8c6e53ef3adb1227fffa442c50349dab134a54bc