Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

168
Visualizações
Setting linker preferences for multiple shared libraries of same name

I link my application against multiple shared libraries, one of which is Google's gRPC, which in turn links against boringSSL. I also link against other libraries, which in turn link against OpenSSL. In the end, calling ldd on my binary and grepping for ssl gives:

    libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f62f35c8000)
    libssl.so => /usr/local/grpc/lib/libssl.so (0x00007f62f28b6000)

I would rather not statically link against gRPC and friends. Is there a way I can set preferences that the second result should be used for gRPC only and the first for everything else?

I am using CMake as a build project, if that helps.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda