URL: <http://savannah.gnu.org/bugs/?36397>
Summary: cross compiling make for Windows on Linux with mingw, small configure bug Project: make Submitted by: jabjoe Submitted on: Fri 04 May 2012 16:02:40 GMT Severity: 3 - Normal Item Group: Build/Install Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.82 Operating System: MS Windows Fixed Release: None Triage Status: None _______________________________________________________ Details: I was cross compile make on Ubuntu for Windows and was having a problem that WINDOWS32 wasn't defined. It turned out to be because the configure file is slightly wrong for the naming of mingw on Ubuntu. On Ubuntu mingw is mingw32msvc so the configure file doesn't create the correct config.h because: case "$host" in *-*-mingw32) doesn't match mingw32msvc. Simply adding a wildcard on the end of mingw32 makes it match, and thus creates the correct config.h, thus build. The fix is to replace the above with the below. case "$host" in *-*-mingw32*) Earlier on configure it already does a host check for mingw, but it does "*-*-mingw*" instead of "*-*-mingw32" which works. The two probably should be consistent (and obviously work ;-) ). _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?36397> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make