custom gcc for cuda toolkit

How can I pass a custom gcc version to the cuda toolkit runfile? I want to install a gcc-5 in my home folder and then tell cuda 8 to use that since the system version (gcc-6) is not supported by that.