------- Comment #18 from david dot kirkby at onetel dot net 2009-06-28 19:30 ------- I have solved this. The key was setting LD_OPTIONS
LD_OPTIONS='-L/usr/local/lib -R/usr/local/lib' I suspect that is a Solaris Environment variable, which is useful to the Sun linker I was using, but not to the GNU linker. \\ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40572