[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mtools] Support cross-compiling for Windows with MinGW; some Windows fi

From: Jamey Sharp
Subject: [Mtools] Support cross-compiling for Windows with MinGW; some Windows fixes
Date: Sun, 21 Jan 2007 16:36:43 -0800
User-agent: Mutt/1.5.13 (2006-08-11)

[Please CC us on replies.]

With the attached patches, mtools supports cross-compilation for Windows
using MinGW.  We have also changed mtools to use '\' as the path
separator on Windows, and to pass drive letters other than the
command-line drive :: through to Windows.

In order to build mtools, we run configure like this:

ac_cv_func_setpgrp_void=yes ./configure --build=i386-linux-gnu 
--host=i586-mingw32msvc --disable-floppyd --without-x --disable-raw-term

We specify both --build and --host to force configure into
cross-compilation mode; otherwise, it tries to run a test program for
the host on the build system, and if the build system has binfmt-misc
set up to run exe files with wine as many distros do by default,
configure will assume native compilation and fail.

Would you consider merging these patches into the next version of

- Jamey Sharp and Josh Triplett

Attachment: 0001-Add-support-for-cross-compiling-mtools-for-Windows-using-MinGW.txt
Description: Text document

Attachment: 0002-Use-as-the-path-separator-in-_basename-on-Windows-and-strip-.exe-from-argv-0-before-checking-for-program-name.t
Description: Text document

Attachment: 0003-On-Windows-support-only-the-command-line-image-drive-all-others-access-the-corresponding-real-drive.txt
Description: Text document

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]