See the message below, which seems to stem from the configure script.
checking whether to enable maintainer-specific portions of Makefiles... no
Links are now set up to build a native compiler for sparc-sun-solaris2.10.
checking for exported symbols...
/rootpool2/local/kirkby/gcc-4.5.1/gcc/configure: line 25463: -T: command not found
checking for -rdynamic... /rootpool2/local/kirkby/gcc-4.5.1/gcc/configure: line
25469: -T: command not found
no
checking for library containing dlopen... none required
checking for -fPIC -shared... yes
Dave