I have installed
mesa using apt in my system. This mesa is installed in
/usr/lib/arm-linux-gnueabihf directory. Now I compiled and installed the newest version of mesa manually from source, and it's installed in
/usr/local/lib/arm-linux-gnueabihf. But my system is still using mesa installed by the package manager.
How can I force system to use newer version of mesa compiled from source?