https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89044

--- Comment #4 from Andoni <ylatuya at gmail dot com> ---
I am sorry  for now explaining my self good enough. I am building a GCC
toolchain for Windows: a cross-compiler one with Linux as host and a native one
with Windows as host. Both toolchains are built in a Linux machine

Host:Linux Target:Windows
../configure --prefix /home/andoni/mingw/linux/multilib --libdir
/home/andoni/mingw/linux/multilib/lib --disable-maintainer-mode
--disable-silent-rules --disab    le-gtk-doc --disable-introspection
--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm
--disable-maintainer-mode--disable-shared --disable-libgomp    
--disable-libquadmath --disable-libquadmath-support --disable-libmudflap
--disable-libmpx --disable-libssp --disable-nls --enable-threads=posix
--enable-__cxa_atexit     --enable-lto --enable-plugin --enable-multiarch
--enable-languages=c,c++ --enable-long-long
--with-sysroot=/home/andoni/mingw/linux/multilib/x86_64-w64-mingw32/sysroot
--with-local-prefix=/home/andoni/mingw/linux/multilib/x86_64-w64-mingw32/sysroot
--target=x86_64-w64-mingw32 --host=x86_64-pc-linux-gnu


Host:Windows Target:Windows
../configure --prefix /home/andoni/mingw/windows/multilib --libdir
/home/andoni/mingw/windows/multilib/lib --disable-maintainer-mode
--disable-silent-rules --disab    le-gtk-doc --disable-introspection
--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm
--disable-maintainer-mode--disable-shared --disable-libgomp    
--disable-libquadmath --disable-libquadmath-support --disable-libmudflap
--disable-libmpx --disable-libssp --disable-nls --enable-threads=posix
--enable-__cxa_atexit     --enable-lto --enable-plugin --enable-multiarch
--enable-languages=c,c++ --enable-long-long
--with-sysroot=/home/andoni/mingw/windows/multilib/x86_64-w64-mingw32/sysroot
--with-local-prefix=/home/andoni/mingw/windows/multilib/x86_64-w64-mingw32/sysroot
--target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32

When cross-compiling the Windows toolchain, libstdc++-6.dll should be installed
in lib/ and lib32/ instead of bin, in a similar fashion as the EH dll's, that
are installed in lib/libgcc_s_seh-1.dll and lib32/libgcc_s_sjlj-1.dll.

Being installed in bin, the x86_64 one is overridden during make install and
there is a single dll for x86 installed in bin/

Reply via email to