diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-01-10 09:26:27 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-01-18 05:00:48 -0800 |
commit | e6f1fde24f77f63fb16b2df239f82a89d2bf05dd (patch) | |
tree | f83df6cbbf7687e8711e4acaf8ad132b2b64c954 /mkspecs | |
parent | 4f55c4181682538e6b1ac2609d907889ca14a02e (diff) |
QLibrary/Unix: do not attempt to load a library relative to $PWD
I added the code in commit 5219c37f7c98f37f078fee00fe8ca35d83ff4f5d to
find libraries in a haswell/ subdir of the main path, but we only need
to do that transformation if the library is contains at least one
directory seprator. That is, if the user asks to load "lib/foo", then we
should try "lib/haswell/foo" (often, the path prefix will be absolute).
When the library name the user requested has no directory separators, we
let dlopen() do the transformation for us. Testing on Linux confirms
glibc does so:
$ LD_DEBUG=libs /lib64/ld-linux-x86-64.so.2 --inhibit-cache ./qml -help |& grep Xcursor
1972475: find library=libXcursor.so.1 [0]; searching
1972475: trying file=/usr/lib64/haswell/avx512_1/libXcursor.so.1
1972475: trying file=/usr/lib64/haswell/libXcursor.so.1
1972475: trying file=/usr/lib64/libXcursor.so.1
1972475: calling init: /usr/lib64/libXcursor.so.1
1972475: calling fini: /usr/lib64/libXcursor.so.1 [0]
Fixes: QTBUG-81272
Change-Id: I596aec77785a4e4e84d5fffd15e89689bb91ffbb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions