MINGW-packages/mingw-w64-qt5-static/0015-fix-build-with-cygwin-tools.patch
مهدي شينون (Mehdi Chinoune) fd5d407809 qt5-static: update to 5.15.17
Fixes #23792
2025-06-21 15:58:29 +01:00

23 lines
628 B
Diff

--- a/qtbase/bin/syncqt.pl
+++ b/qtbase/bin/syncqt.pl
@@ -54,7 +54,7 @@
use warnings;
use English qw(-no_match_vars );
-my $normalizePath_fixDrive = ($^O eq "msys" ? 1 : 0);
+my $normalizePath_fixDrive = ($^O eq "cygwin" ? 1 : 0);
######################################################################
# Syntax: normalizePath(\$path)
--- a/qtbase/configure
+++ b/qtbase/configure
@@ -305,7 +305,7 @@
if [ -d /System/Library/Frameworks/Cocoa.framework ]; then
BUILD_ON_MAC=yes
fi
-if [ "$OSTYPE" = "msys" ]; then
+if [ "$OSTYPE" = "cygwin" ]; then
relpath=`(cd "$relpath"; pwd -W)`
outpath=`pwd -W`
fi