-
Notifications
You must be signed in to change notification settings - Fork 555
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
Support shared libs "properly" #3214
Comments
cc: @greg-lunarg |
Also support MACOSX_RPATH properly |
@dneto0 Doing 0.YYYY.release# or 0.YYYY.release#-dev I think as you have suggested above is better, since there is a bit more meaning to the release # then just the date it was cut on. |
Anything I can do to help with this? It's blocking some of my work. |
Just to mention that I have tried to fix shared libs of SPIRV-Tools for conan, with
Other ugly option: use Off Topic: it would be nice to don't force the build of |
I suspect that rather than an export header, a version script (linux/mac) or For reference: ours is here
You'll probably also want to start linking |
This is excellent advice. For C code, I'm not sure whether
Please note that there can be a difference between the "marketing" version number and the ABI version, and there is also a difference between the SONAME and the ABI version. On Linux and similar platforms, the goal is to get this setup:
On Windows, one reasonably common convention is that if your SONAME on Linux is |
https://pusling.com/blog/?p=352 has some good examples of setting the version of a shared library in CMake. The You can use |
Would it be helpful for me or @rpavlik to provide a pull request that sets a correct SONAME for Unix builds? That would close #3046, at least. Some assumptions that this would need to make:
Please let us know if any of those assumptions are wrong. Explicit control over exported symbols (export header or version-script) would be nice to have, but is not necessarily required to fix #3046, so I think it would be worthwhile to solve #3046 first. |
Thanks for your patience on and thoughtful contributions. @ben-clayton will be looking at this and applying a consistent solution across the projects our team maintains. |
I can tell when I built SPIRV-Tools, |
See also the interesting discussion over at Shaderc: google/shaderc#381 and google/shaderc#498
The text was updated successfully, but these errors were encountered: