https://bugs.winehq.org/show_bug.cgi?id=48113
Bug ID: 48113 Summary: The -mno-cygwin option should be abandoned. Product: Wine Version: 4.20 Hardware: x86 OS: Windows Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env Assignee: wine-bugs@winehq.org Reporter: carlo.bramix@libero.it
With reference to bugs #47959 and #47951, I think that the "-mno-cygwin" option should be abandoned, since it is no more functional by long time.
In the past, this option was used for telling GCC if executables and DLLs depended on POSIX layer or they were just plain executables for Windows. This option has been obsoleted since the transition from gcc3 to gcc4 and deprecated since GCC 4.7. Modern build tools for CYGWIN make only objects linked with POSIX layer and cross compilers from MINGW-W64 are included for both 32 and 64 bit platforms. Building WINE for running natively on Windows requires to follow the same method typically used when doing a cross compile, on CYGWIN but also in MSYS2. This will also fix this error:
gcc: error: unrecognized command line option '-mno-cygwin'
that you get when you start to build.
Question: this is the content of a simple Makefile.in:
<================================
MODULE = acledit.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ main.c
================================>
Assuming that somebody will provide this change and since EXTRADLLFLAGS is typically used only for "-mno-cygwin", is it required to keep the presence of an empty EXTRADLLFLAGS or it can be deleted from the Makefile.in?
Thanks.