From b640bf726864b0eb4d45728a25c9707aa5a59e85 Mon Sep 17 00:00:00 2001 From: Ville Nummela Date: Fri, 27 Mar 2020 13:59:28 +0200 Subject: [PATCH] [qtbase] build qmake with -DQT_LARGEFILE_SUPPORT. Fixes JB#49446 Under Docker and Windows, ::stat() returns EOVERFLOW for all files which are shared from host to the container. ::stat64() works. QT_LARGEFILE_SUPPORT changes the QFile::exists() implementation to use ::stat64(). --- qmake/Makefile.unix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qmake/Makefile.unix b/qmake/Makefile.unix index 1a7a78fc7b..adfae81bc2 100644 --- a/qmake/Makefile.unix +++ b/qmake/Makefile.unix @@ -107,7 +107,8 @@ CPPFLAGS = -g $(EXTRA_CPPFLAGS) \ -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL \ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS \ -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM \ - -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS + -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS \ + -DQT_LARGEFILE_SUPPORT CXXFLAGS = $(EXTRA_CXXFLAGS) $(CPPFLAGS)