diff options
author | Martchus | 2017-06-08 21:33:56 +0200 |
---|---|---|
committer | Martchus | 2017-06-08 21:33:56 +0200 |
commit | 3df6482af8c916f5105111d1dcf6711e01a56c47 (patch) | |
tree | 55879cff03b12573e665e21cdd7c7d7e65df1c2d /0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch | |
parent | 288f048fafcb5879c7c038c7e507b6ea98732b93 (diff) | |
download | aur-3df6482af8c916f5105111d1dcf6711e01a56c47.tar.gz |
Update to 5.9.0
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.patch | 29 |
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..d5a1d718ffcc --- /dev/null +++ b/0024-Adjust-linker-flags-for-static-build-with-cmake-ming.patch @@ -0,0 +1,29 @@ +From 1f6fc1094a08c20ac78cc75e6667693676d10907 Mon Sep 17 00:00:00 2001 +From: Martchus <martchus@gmx.net> +Date: Fri, 2 Jun 2017 16:42:07 +0200 +Subject: [PATCH 24/31] 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 42a3c557aa..fd5c947b5f 100644 +--- a/src/corelib/Qt5CoreConfigExtras.cmake.in ++++ b/src/corelib/Qt5CoreConfigExtras.cmake.in +@@ -194,3 +194,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.13.0 + |