New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Linking .so dependency for header only package best practice #7537
Comments
Hi @Tridacnid, |
That looks like it works correctly for both version of Conan. Thanks! What's the difference? When should I use sharedlinkflags vs exelinkflags? |
I'll bump this once to try to get an answer to my question above and then close it in a week. Is my guess that sharedlinkflags and exelinkflags represent the flags that should be used when the conan package is part of a shared object and an executable binary respectively? If that's correct, how come they're separated? |
Hi @Tridacnid
Yes, if I understood it correctly, you are right.
Not sure what you mean. Please let me know if the above clarifies the issue a bit. |
That answers it, thanks! |
What's the correct way to specify linkage to a shared object library that's effectively a system lib but isn't in a globally search location like
/usr/lib
? I have a header only Conan package that wraps a C library installed to/opt/<subdir>
and have usedself.cpp_info.sharedlinkflags
in the past but updating Conan from 1.22.2 to 1.28.1 breaks the build.The text was updated successfully, but these errors were encountered: