My custom ld.so.conf doesn't work

# Fix SELinux labels
sudo restorecon -R /etc/ld.so.*

# Update cache
sudo ldconfig

# Check cached libs
ldconfig -p | grep -e libvcmi.so
ls -l /usr/local/lib64/vcmi/libvcmi.so*

https://man.cx/ldconfig