Merge branch 'valgrind_lib' into 'master'

[SPI-1992]: set VALGRIND_LIB depending where shared objects are

See merge request !951

(cherry picked from commit 3f76ca6e)

f26d53e9 [SPI-1992]: set VALGRIND_LIB depending where shared objects are
4 jobs for cherry-pick-3f76ca6e-LCG_101-patches in 5 minutes and 17 seconds (queued for 25 seconds)