aboutsummarylogtreecommitdiffstats
path: root/0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch
diff options
context:
space:
mode:
authorMartchus2018-02-19 20:15:12 +0100
committerMartchus2018-02-19 20:15:12 +0100
commitc6673c0c7a8cd272bf5c57bae2dfdf9e3375e720 (patch)
tree7ffbbb53d01f5ba10741792a307c49bfbd975c42 /0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch
parenta984353d1a4d7e288228aae29ecde8aab27ca487 (diff)
downloadaur-c6673c0c7a8cd272bf5c57bae2dfdf9e3375e720.tar.gz
Update to 5.10.1
Diffstat (limited to '0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch')
-rw-r--r--0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch b/0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch
new file mode 100644
index 000000000000..d463e883d3ad
--- /dev/null
+++ b/0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch
@@ -0,0 +1,29 @@
+From 61cc992fc37a4f44ada488a9e60514e237e523b5 Mon Sep 17 00:00:00 2001
+From: Martchus <martchus@gmx.net>
+Date: Fri, 2 Jun 2017 16:42:07 +0200
+Subject: [PATCH 24/32] Adjust linker flags for static build with
+ cmake/mingw-w64
+
+Change-Id: I33b88976d8f5ce87ce431a6f422fe87785bf5b8d
+---
+ src/corelib/Qt5CoreConfigExtras.cmake.in | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in
+index ebe6644dfe..687d611b3f 100644
+--- a/src/corelib/Qt5CoreConfigExtras.cmake.in
++++ b/src/corelib/Qt5CoreConfigExtras.cmake.in
+@@ -190,3 +190,10 @@ get_filename_component(_Qt5CoreConfigDir ${CMAKE_CURRENT_LIST_FILE} PATH)
+ set(_Qt5CTestMacros \"${_Qt5CoreConfigDir}/Qt5CTestMacros.cmake\")
+
+ _qt5_Core_check_file_exists(${_Qt5CTestMacros})
++
++!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
++set(_isExe $<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>)
++# INTERFACE_LINK_LIBRARIES is used to pass a linker flag '-static' and library ws2_32
++set_target_properties(${IMPORTED_TARGET_NAME} PROPERTIES \"INTERFACE_LINK_LIBRARIES\" \"$<${_isExe}:-static;ws2_32>\")
++unset(_isExe)
++!!ENDIF
+--
+2.16.1
+