Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!