Marat Radchenko wrote: > config.mak.uname: provide a way to explicitely request MinGW build. > This is required to perform Linux->MinGW crosscompilation. > --- > > > Personally I don't see why ideally I shouldn't be able to build upstream Git > > for Windows with mingw without leaving my Linux system. > > One day you might be able, but as of today... > > 1. Obtain x86_64-w64-mingw32 compiler for your *nix distro > * [Gentoo] emerge crossdev && crossdev -t x86_64-w64-mingw32 > * [Debian/Ubuntu] apt-get install mingw-w64 Note that I didn't say 64-bit. Baby steps, first the tried-and-true 32-bit compiler. > 2. Apply patch from this email to Git sources (git/git or msysgit/git - doesn't matter) Funny I came with almost exactly the same patch. > 3. `make CC=x86_64-w64-mingw32-gcc MINGW=1` I did: % make CC=i486-mingw32-gcc NO_OPENSSL=1 NO_GETTEXT=1 But ideally it should be: % make CROSS_COMPILE=i486-mingw32- (or whatever the name of the suite) > 4. Observe errors [1] I see those errors with a 64-bit compiler, but not with the old 32-bit one. > I would be happy to find out I'm doing something wrong -- Johannes says building > mingw64 Git is dirt-easy. I get the same error. I've been cross-compiling since basically all my professional life, so I don't think you are doing something wrong, it just doesn't work. -- Felipe Contreras -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html