Upgrade to latest version of libexiv2

To get an update lens db, I need a newer version of libexiv2 than is currently in the repo. Specifically I need version 0.27 or later. I tried to build it from source, and installed it in /usr/local. Now I want Darktable to find the new version. Tried

sudo ldconfig

And modifying LD_LIBRARY_PATH, but it still loads the old version. Should I download a new Darktable too, and compile that against the new version or would replacing the symlink be sufficient.

Off-topic: New version needs to be pushed upstream in Ubuntu 20.20.