ldconfig(8) manpage says:
> Filenames must conform to the lib*.so.[0-9]
> pattern in order to be added to the hints file.
The pattern should be changed to lib*.so.[0-9]+ because otherwise only 10 choices are available.
The code should be verified that it doesn't limit SONAMEs in this way.