From 6139785883e6ceee0369390debd39a90c18d821b Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 8 Nov 2020 00:34:09 +0100
Subject: [PATCH 7/8] Allow overriding CMAKE_FIND_LIBRARY_SUFFIXES to prefer
 static libraries

Change-Id: I4c617e0706044d31da1bd56ae51615dc8ed37099
---
 cmake/QtBuildInternals/QtBuildInternalsConfig.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake b/qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
index 89c13afe01..6a21b6e266 100644
--- a/qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
+++ b/qtbase/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
@@ -4,6 +4,10 @@
 # These values should be kept in sync with those in qtbase/.cmake.conf
 cmake_minimum_required(VERSION 3.16...3.21)
 
+if (CMAKE_FIND_LIBRARY_SUFFIXES_OVERRIDE)
+    set(CMAKE_FIND_LIBRARY_SUFFIXES "${CMAKE_FIND_LIBRARY_SUFFIXES_OVERRIDE}")
+endif ()
+
 set(QT_BACKUP_CMAKE_INSTALL_PREFIX_BEFORE_EXTRA_INCLUDE "${CMAKE_INSTALL_PREFIX}")
 
 # This depends on qt_internal_read_repo_dependencies existing.
-- 
2.33.0

