Nikos Mavrogiannopoulos n.mavrogiannopoulos@gmail.com writes:
The attached patch will add symbol versioning in nettle. That would mean that software linked against nettle 3.x will be able to interoperate with libraries that are linked on a previous version of nettle (and vice versa).
Thanks. I take it that solves the soname-related problem you reported yesterday? (I hope to be able to respond properly later today).
I think it would be good with some comments in the linker script libnettle.map, explaining when and how to update it. E.g., the "3" in "NETTLE_3", when should that be updated? Should it always follow the soname? If so, maybe we should have a libnettle.map.in and let configure substitute the major number.
How should we handle incompatible changes to internal, undocumented functions? Then I usually bump the minor number only, but not the soname? Maybe it's impossible or unlikely to get two versions with the same soname linked into the same running program, in which case symbol versions don't need any finer resolution than the soname?
Regards, /Niels