Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.3
-
None
-
d5071a4016ec663f8ec7c89ec7ebabea54b3260f (qt/qtbase/5.12)
Description
Static build fails if Qt is configured so that -libdir is one of the QMAKE_DEFAULT_LIBDIRS
e.g., ./configure -prefix /usr -static
| linking ../../bin/qmlpreview | aarch64-poky-linux-g++: error: /libqtpcre2.a: No such file or directory | Makefile:80: recipe for target '../../bin/qmlpreview' failed
Caused by bad replacement in the prl files during installation.
libQt5Core.prl:
QMAKE_PRL_LIBS = -lpthread -lm /usr/lib/x86_64-linux-gnu/libz.so /home/sapiippo/development/build/static/lib/libqtpcre2.a /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so
->
QMAKE_PRL_LIBS = -lpthread -lm /usr/lib/x86_64-linux-gnu/libz.so /libqtpcre2.a /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so
likely side effect of commit 521a85395