The root cause of the problem is the makefile gets lost when you give the full path to either FC or _FC

Oh, i see. I will try the patch and let you know...

Does the patch apply to all compilers (Intel, gcc, nag, etc), both FC and CC? If not, then it would probably be a more robust solution for me to set FC and CC to point to basename (gfortran) instead of the full path (long/path/to/gfortran) as directories are in PATH anyway.