This was the command executed by configure:
pgf90 -O2 -g conftest.f90 -Isubdir

It will work if -g is not used or if the linking step is done separate
from the compilation of conftest.f90. The Portland Group support is
still trying to figure out if this is a bug in their compiler.