[PATCH 0/1] MR6387: configure: Fix build on CYGWIN & MinGW.
The macro `_GNU_SOURCE` isn't defined by default on CYGWIN and MinGW, but it must be added otherwise it won't find the prototypes of several functions. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6387
From: Carlo Bramini <carlo_bramini(a)users.sourceforge.net> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2d841d0d496..9bbeb0112fc 100644 --- a/configure.ac +++ b/configure.ac @@ -603,7 +603,7 @@ case $host_os in cygwin*|mingw32*) LIBEXT="dll" DLLEXT="" - EXTRACFLAGS="-D__WINE_PE_BUILD" + EXTRACFLAGS="-D__WINE_PE_BUILD -D_GNU_SOURCE" dnl Disable stdcall fixups to catch prototype mismatches AS_VAR_IF([HOST_ARCH],[i386], [WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup], -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6387
What functions are missing? This should most likely go in config.h. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6387#note_80255
participants (3)
-
Alexandre Julliard (@julliard) -
Carlo Bramini -
Carlo Bramini (@carlo-bramini)