I am compiling mesa and it compiles ok but I think it it compiles to the usr/local/lib but I want to replace the system version as I want applications to use my compiled version instead.

How do I do this?