From 93d74798d7fc584e28ca35ef9522dee7d9747c82 Mon Sep 17 00:00:00 2001 From: Milot Mirdita Date: Tue, 19 Nov 2024 00:09:21 +0900 Subject: [PATCH] Try to solve issue with GLIBC_PRIVATE symbols --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d0693759..e7d4e363 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -251,6 +251,10 @@ if (ENABLE_CUDA) find_package(CUDAToolkit REQUIRED) target_compile_definitions(mmseqs-framework PUBLIC -DHAVE_CUDA=1) target_link_libraries(mmseqs-framework marv) + if (PREFER_STATIC) + # link to rt explicitly so it doesn't get statically compiled and adds GLIBC_PRIVATE symbols + target_link_libraries(mmseqs-framework rt) + endif () target_link_libraries(mmseqs-framework CUDA::cudart_static) endif ()