When using MinGW compiler and Qt is configured with "-static-runtime", we should pass "-static" to g++ while linking, like Qt 5, instead of "-Wl,-Bstatic", to get rid of dependencies on libgcc_s_seh-1.dll, libwinpthread-1.dll and libstdc++-6.dll. Because syncqt doesn't link to any Qt library, "target_link_options(${target} INTERFACE -static)" has no effect on it. So we should use "PRIVATE" instead of "INTERFACE" for executables. Change-Id: Icf551783f92ef3615b3840c9af16d163eee09fdb Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 9256d9e7b6ab4bfeaeb733c88719e1019d7bd92b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%