From b98c251bface150ae5edc3c8c27db0274ca9f52e Mon Sep 17 00:00:00 2001 From: Carlo Bramini Date: Thu, 2 Jan 2025 00:22:00 +0100 Subject: [PATCH] 3rdparty: fix linking of cygQt6Core on CYGWIN On CYGWIN, the final link of cygQt6Core process fails at this point: qtbase/src/corelib/CMakeFiles/Core.dir/io/qprocess_unix.cpp.o:qprocess_unix.:(.rdata$.refptr.__interceptor_vfork[.refptr.__interceptor_vfork]+0x0): undefined reference to `__interceptor_vfork' collect2: error: ld returned 1 exit status so we just avoid that. Change-Id: Iafe935981b507aa1449ed41e89fe6e86b9298dde Reviewed-by: Thiago Macieira --- src/corelib/io/qprocess_unix.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index 5f5db564e90..0ea9d2a85ea 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -689,6 +689,10 @@ inline bool globalUsingVfork() noexcept // why: without the tools to investigate why it happens, we didn't bother. return false; #endif +#if defined(Q_OS_CYGWIN) + // Fails to link Qt6Core, so we avoid that.. + return false; +#endif // Dynamically detect whether libasan or libtsan are loaded into the // process' memory. We need this because the user's code may be compiled