From d749f1960b809718b93e41cd18311c7ad59d2b13 Mon Sep 17 00:00:00 2001 From: Daouda Diakite Date: Mon, 9 Sep 2024 12:13:45 +0200 Subject: [PATCH] Fix worker build for alpine --- packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt b/packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt index 9f0821f53..4a1523e48 100644 --- a/packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt +++ b/packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt @@ -33,7 +33,8 @@ endif() find_package(gRPC CONFIG REQUIRED) find_package(Threads) -target_link_libraries(${PROJECT_NAME} PUBLIC protobuf::libprotobuf gRPC::grpc++_unsecure ArmoniK.Api.Common ${PROTO_TARGET}) +target_link_libraries(${PROJECT_NAME} PUBLIC protobuf::libprotobuf gRPC::grpc++ ArmoniK.Api.Common ${PROTO_TARGET}) +target_link_options(${PROJECT_NAME} PUBLIC "-Wl,--copy-dt-needed-entries") target_include_directories(${PROJECT_NAME} PUBLIC