------- Comment #1 from davek at gcc dot gnu dot org 2009-08-12 22:57 ------- Even the target-specific i686-mingw32/bin directory contains host applications, i.e. the non-$target-prefixed versions of the binutils.
So since these DLLs are never going to be used on the host, we could put them in $target/lib. That might end up altering the link order a bit, since ld supports linking directly against dlls but $prefix/bin isn't usually in the link path; however as long as the compiler's private directory $prefix/lib/gcc/$target/$version is first in the list, the dll's related import lib will always be found first. The other place to install them would be in GCC's private dir. I'm not sure yet which might be preferable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40125