In my nixcrpkgs project, I never had to use "--disable-multilib".  I
just use "--host=x86_64-w64-mingw32" or "--host=i686-w64-mingw32" and
it seems to only build one library.  Also I don't have a 32-bit GCC on
my path when building a 64-bit mingw-w64, so there would be no way for
it to build any 32-bit libraries.

Regarding the mingw prefix, I patch GCC's gcc/config/i386/mingw32.h
file so it doesn't use it:

https://github.com/DavidEGrayson/nixcrpkgs/blob/a408b5c/mingw-w64/gcc/mingw-search-paths.patch

There's also another patch I need to get the header paths to be correct:

https://github.com/DavidEGrayson/nixcrpkgs/blob/a408b5c/mingw-w64/gcc/cppdefault.patch

--David

On Thu, Apr 4, 2019 at 10:19 AM Kacvinsky, Tom <[email protected]> wrote:
>
> I am using
>
> https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
>
> In there, it says to use --disable-multilib if I do not want 32 and 64-bit 
> support, only the native
> mingw-w64 architecture.  Despite adding that to the configure options, lib32 
> is still built.  I'd
> have to say there is an error in the documentation, or the configure script 
> is not working as
> expected.
>
> I added --disable-multiarch and that did not work for the mingw-w64-crt.  I 
> guess the only thing
> that will work is --disable-lib32.
>
> Also of note, following the instructions for building just the GCC ompiler 
> (make all-gcc), I get
> an error that the headers to be fixed are expected to be in <prefix>/mingw.  
> In my case, I
> did the Windows equivalent of
>
> ln -s /usr/local/x86_64-w64-mingw32 /usr/local/mingw
>
> because I had used /usr/local as my prefix.  But, the GCC compile still 
> complained about the
> header missing, and expects them in /mingw/include.  So I copied the headers 
> there and it
> worked.
>
> Maybe this is why the gcc that comes from msys64 package 
> mingw-w64-x86+64-toolchain is
> configured with " 
> --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include",
> and I would just have to modify my configure to use /usr/local/ 
> x86_64-w64-mingw32/include
> instead
>
>
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to