Use cygwin to run autotools for MSVC?

Eliot Moss moss@cs.umass.edu
Thu Mar 26 23:05:59 GMT 2020


On 3/26/2020 5:37 PM, Csaba Raduly via Cygwin wrote:
> Hi Mike,
> 
> On Thu, Mar 26, 2020 at 9:31 PM Mike Gran via Cygwin <cygwin@cygwin.com>
> wrote:
> 
>> Hi-
>> Is it possible use Cygwin to run an autotools 'configure' script but have
>> the compiler be MSVC?
>>
> 
> I would be very surprised if this worked. 'configure' is likely to run the
> compiler with unix-style flags (started with hyphens) rather than DOS-style
> flags (started with forward slashes). cl.exe may accept only DOS-style
> flags.
> 
> Also, MSVC won't be able to find Cygwin's include files, and even if it
> did, most likely won't be able to compile them.
> 
> The whole thing sounds like a recipe for failure. What are you trying to
> achieve?

All that said, I _have_ seen build processes organized to give MSVC
as an option ... and that in fact sometimes make it hard to do a Cygwin
build because they "want" to do a native Windows build!

However, this may have been more just a canned Makefile than a whole
./configure process ...

Eliot


More information about the Cygwin mailing list