diff options
author | Martchus | 2019-11-09 23:10:39 +0100 |
---|---|---|
committer | Martchus | 2019-11-09 23:10:39 +0100 |
commit | 282de2ab2eacf0bff5b4cf47ba834d9621d20c25 (patch) | |
tree | eceada904c1e83145191e352f36963eaf67712cd /0031-Prevent-static-build-to-prefer-dynamic-libraries.patch | |
parent | ba5a8ea804afbfe0b768ffa37d22715537af567d (diff) | |
download | aur-282de2ab2eacf0bff5b4cf47ba834d9621d20c25.tar.gz |
Update to 5.13.2
Diffstat (limited to '0031-Prevent-static-build-to-prefer-dynamic-libraries.patch')
-rw-r--r-- | 0031-Prevent-static-build-to-prefer-dynamic-libraries.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/0031-Prevent-static-build-to-prefer-dynamic-libraries.patch b/0031-Prevent-static-build-to-prefer-dynamic-libraries.patch new file mode 100644 index 000000000000..6b262a3f648a --- /dev/null +++ b/0031-Prevent-static-build-to-prefer-dynamic-libraries.patch @@ -0,0 +1,37 @@ +From 51a0ac0ff3a726f88af9e8cd472779b33117d304 Mon Sep 17 00:00:00 2001 +From: Martchus <martchus@gmx.net> +Date: Sun, 3 Feb 2019 14:34:42 +0100 +Subject: [PATCH 31/32] Prevent static build to prefer dynamic libraries + +The static build should not attempt to link against dynamic libraries +in order to get a fully statically linked binary in the end. +--- + mkspecs/features/qt_configure.prf | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf +index 81110e9f6d..61f7cf27d1 100644 +--- a/mkspecs/features/qt_configure.prf ++++ b/mkspecs/features/qt_configure.prf +@@ -577,12 +577,12 @@ defineTest(qtConfResolveLibs) { + # Under Windows, we look only for static libraries, as even for DLLs + # one actually links against a static import library. + mingw { +- lcan += \ +- # MinGW supports UNIX-style library naming in addition to +- # the MSVC style. +- lib$${lib}.dll.a lib$${lib}.a \ +- # Fun fact: prefix-less libraries are also supported. +- $${lib}.dll.a $${lib}.a ++ # prefer (import) libraries for dynamic linking unless we're doing a ++ # static build where we solely rely on presence of static libraries ++ shared { ++ lcan += $${QMAKE_PREFIX_STATICLIB}$${lib}.$${QMAKE_EXTENSION_IMPORTLIB} $${lib}.$${QMAKE_EXTENSION_IMPORTLIB} ++ } ++ lcan += $${QMAKE_PREFIX_STATICLIB}$${lib}.$${QMAKE_EXTENSION_STATICLIB} $${lib}.$${QMAKE_EXTENSION_STATICLIB} + } + lcan += $${lib}.lib + } +-- +2.24.0 + |