Hi Przemek,

Try:
  gcc --target-help

You're right, these options are somehow visible
on this help screen, but I did a few simple tests
(compiling a simple program to return different value,
if __CYGWIN__ is #defined, and also 'gcc -dD -E - < nul'
dumps), and there is no sign that these switches are
doing anything, __CYGWIN__ was never #defined, that is.

This was done on 3.4.2, so I suspect this is true for
newer versions.

Do you mean this is needed for the Linux MingW cross-compiler
environment, still? If that's the case, shouldn't we add this
command line option in the starter .sh files?

It does not depend on OS but on default compiler switches which
can be changed/customized in all installations. If you think it's
very seldom situation then we can leave it as is.

It may cause problems for those who want to use MinGW 2.95
(which was still labeled Cygnus MinGW), but I suspect there
is not many wanting to do this. I'm also not sure what was
the default for this version, but maybe -mno-cygwin was
indeed needed for this, maybe not. I don't have this version
anymore, so I cannot test.

But anyway, just like __CYGWIN__ support, HB_OS_MAC, this
looks pretty much a thing of the past.

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to