I wrote:
For the gcc-4.1.2 prerelease this build was first for the MinGW host
so maybe I patched
one of those "relative paths" away and these missings came from that...
That was the case... After checking my local patches for getting the
'$prefix/lib/gcc-lib' back
as the "install path", and finding there that the relative paths via the
'$prefix/lib/gcc-lib/$target/$gcc-version'
were "simplified" too much, the final result with the rebuilt, and then,
as "relocated", installed toolchain was :
F:\mingw>bin\gcc-i686-mingw-41pr -print-search-dirs
install: /usr/local/lib/gcc-lib/i686-mingw32/4.1.2/
programs: =
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/;
f:/mingw/bin/../lib/gcc-lib/;
/usr/local/lib/gcc-lib/i686-mingw32/4.1.2/;
/usr/local/lib/gcc-lib/i686-mingw32/4.1.2/;
/usr/local/lib/gcc-lib/i686-mingw32/;
/usr/local/lib/gcc-lib/i686-mingw32/4.1.2/;
/usr/local/lib/gcc-lib/i686-mingw32/;
/usr/libexec/gcc/i686-mingw32/4.1.2/;
/usr/libexec/gcc/i686-mingw32/;
/usr/lib/gcc/i686-mingw32/4.1.2/;
/usr/lib/gcc/i686-mingw32/;
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/../../../../i686-mingw32/bin/i686-mingw32/4.1.2/;
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/../../../../i686-mingw32/bin/;
/usr/local/i686-mingw32/bin/i686-mingw32/4.1.2/;
/usr/local/i686-mingw32/bin/
libraries: =
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/;
f:/mingw/bin/../lib/gcc-lib/;
/usr/local/lib/gcc-lib/i686-mingw32/4.1.2/;
/usr/lib/gcc/i686-mingw32/4.1.2/;
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/../../../../i686-mingw32/lib/i686-mingw32/4.1.2/;
f:/mingw/bin/../lib/gcc-lib/i686-mingw32/4.1.2/../../../../i686-mingw32/lib/;
/usr/local/i686-mingw32/lib/i686-mingw32/4.1.2/;
/usr/local/i686-mingw32/lib/
As can be seen, the "configured" $prefix was '/usr/local' but the
"install" $prefix was '/mingw'.
So the produced "MinGW-targeted GCC on MinGW-host" cross GCC really is
"relocatable" !
The headers search paths were also fully ok...