The la files installed by gcc are broken. They show # Directory that this library needs to be installed in: libdir='/usr/lib/gcc/i686-pc-linux-gnu/4.4.3' Instead of a prefixed one.
hmmm, which gcc and what .la files are you looking at? Mine seem to have the EPREFIX properly in there.
libgfortran.la and libgomp.la. Actually it isn't the prefix, but the wrong dir /opt/scisoft64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libgomp.la: libdir='/opt/scisoft64/usr/lib/../lib64' /opt/scisoft64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libgfortran.la: libdir='/opt/scisoft64/usr/lib/../lib64' /opt/scisoft64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libgfortranbegin.la: is OK /opt/scisoft32/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgomp.la: libdir='/opt/scisoft32/usr/lib' /opt/scisoft32/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgfortran.la: libdir='/opt/scisoft32/usr/lib' /opt/scisoft32/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgfortranbegin.la: OK
hmmm, interesting.
what is the value of libdir for the files were it's OK actually?
libdir='/opt/scisoft64/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3' libdir='/opt/scisoft32/usr/lib/gcc/i686-pc-linux-gnu/4.4.3'
not going to fix this, never caused trouble for me (removing .la files is better best thing to do here)