setting CPU_TYPE when cross-compiling from Linux to Windows

Torbjörn Granlund tg at
Sun Dec 29 00:43:36 UTC 2019

Claude Heiland-Allen <claude at> writes:

  Notice it uses compiler `gcc` instead of `x86_64-w64-mingw32-gcc`,
  which leads to a build for Linux, not Windows.

Well, you explicitly tell it to use "gcc" which might be why it uses

  Thanks for any advice,


1. Please read the GMP documentation.

2. GMP's configuration and build system is not perfectly resilient to
   inconsistent parameters.  You pass lots of parameters, and this is
   not something the manual's build instructions suggested; therefore
   you're on your own.

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list