[Patch] Rationalize cygwin/mingw config commonalities, -mno-cygwin handling

Christopher Faylor cgf@redhat.com
Tue Mar 18 14:35:00 GMT 2003


On Mon, Mar 17, 2003 at 09:45:18AM -0500, Christopher Faylor wrote:
>On Thu, Mar 13, 2003 at 07:15:46AM -0800, Zack Weinberg wrote:
>>Christopher Faylor <cgf@redhat.com> writes:
>>
>>>>Could you outline the behavior that you actually want, at a high
>>>>level?
>>>
>>> Quite simply, the -mno-cygwin option is now and has always been a
>>> kludge.  It makes the cygwin gcc act as either a normal compiler or a
>>> cross-compiler.  Setting the environment variable tells later stages
>>> where to find header files and libraries.
>>>
>>> AFAICT, there is no way to make changes like "now find all of your
>>> headers over here" controllable by an option in gcc.
>>
>>Not presently, but we could change that if you would tell us what
>>needs to happen.
>
>Basically, all places where the word 'i686-pc-cygwin' shows up need to
>be changed to 'i686-pc-mingw32' under program control.

Unless there are strong objections, I'd like to just approve this patch
as is and remove the environment variable stuff when a better mechanism
is invented.  This patch is one of a few things that has been languishing
on a branch for a while.  It's been in use in the cygwin binary release
for some time so, while it is ugly, it does work.

cgf



More information about the Gcc-patches mailing list