No delete required, it will correct the soname conventions.
should give the details.
-v verbose (sounds nice)
-n only process directories on the command line
-N don't rebuild the cache
-f conf use conf instead of /etc/ld.so.conf
-r root change to and use root as the root directory
All sound like likely members of a command to manually fix those links.
There may be more info in the man page.
Be sure to always use "-N" so you don't trash your system cache.
"Hack is just a four letter word." - - With apologies to B. Dylan - -> JB on BD