1 From 492f6555bb09f207c83387441f0f23ba4602dfff Mon Sep 17 00:00:00 2001
2 From: Thomas Tuegel <ttuegel@mailbox.org>
3 Date: Wed, 18 Sep 2019 05:39:50 -0500
4 Subject: [PATCH 04/12] qtbase-replace-libdir
7 mkspecs/features/qt_common.prf | 20 ++------------------
8 mkspecs/features/qt_module.prf | 5 +----
9 2 files changed, 3 insertions(+), 22 deletions(-)
11 diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf
12 index caecb68a84..d3aa3ba570 100644
13 --- a/mkspecs/features/qt_common.prf
14 +++ b/mkspecs/features/qt_common.prf
15 @@ -30,32 +30,16 @@ contains(TEMPLATE, .*lib) {
16 rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]*
18 rplbase = $$MODULE_BASE_OUTDIR
20 - qqt_libdir = \$\$\$\$[QT_HOST_LIBS]
21 - qt_libdir = $$[QT_HOST_LIBS]
23 - qqt_libdir = \$\$\$\$[QT_INSTALL_LIBS]
24 - qt_libdir = $$[QT_INSTALL_LIBS]
26 + qt_libdir = $$NIX_OUTPUT_OUT/lib
27 contains(QMAKE_DEFAULT_LIBDIRS, $$qt_libdir) {
28 - lib_replace0.match = $$rplbase/lib/
29 - lib_replace0.replace = $$qqt_libdir/
30 - lib_replace0.CONFIG = path
31 - QMAKE_PRL_INSTALL_REPLACE += lib_replace0
32 lib_replace.match = "[^ ']*$$rplbase/lib"
35 lib_replace.match = $$rplbase/lib
36 - lib_replace.replace = $$qqt_libdir
37 + lib_replace.replace = $$qt_libdir
39 lib_replace.CONFIG = path
40 QMAKE_PRL_INSTALL_REPLACE += lib_replace
41 - !equals(qt_libdir, $$rplbase/lib) {
42 - qtlibdir_replace.match = $$qt_libdir
43 - qtlibdir_replace.replace = $$qqt_libdir
44 - qtlibdir_replace.CONFIG = path
45 - QMAKE_PRL_INSTALL_REPLACE += qtlibdir_replace
49 # The remainder of this file must not apply to host tools/libraries,
50 diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
51 index ee7de22059..9015b30d73 100644
52 --- a/mkspecs/features/qt_module.prf
53 +++ b/mkspecs/features/qt_module.prf
54 @@ -303,10 +303,7 @@ load(qt_targets)
57 CONFIG += create_libtool
59 - QMAKE_LIBTOOL_LIBDIR = $$[QT_HOST_LIBS]
61 - QMAKE_LIBTOOL_LIBDIR = "=$$[QT_INSTALL_LIBS/raw]"
62 + QMAKE_LIBTOOL_LIBDIR = $$NIX_OUTPUT_OUT/lib
63 !isEmpty(lib_replace0.match) {
64 ltlib_replace0.match = $$lib_replace0.match
65 ltlib_replace0.replace = $$QMAKE_LIBTOOL_LIBDIR/