diff options
| author | Shane Kearns <[email protected]> | 2012-03-28 16:06:57 +0100 |
|---|---|---|
| committer | Qt by Nokia <[email protected]> | 2012-04-05 15:37:53 +0200 |
| commit | e5337ad1b1fb02873ce7b5ca8db45f6fd8063352 (patch) | |
| tree | 8930aa63dad6ee7eef85b08137b8e16f1373c65f /src/sql/drivers/psql/qsql_psql.cpp | |
| parent | 76ae64abb54581a9bae27745d28aaf4dfb23a00c (diff) | |
Find libssl on linux using paths of loaded libraries
The installed path of libssl may include an element describing the
architecture, e.g. x86_64-linux-gnu or i386-linux-gnu.
In most cases, the libraries already loaded (static dependencies of
Qt, such as libc) will include the path where libssl is installed.
Use dl_iterate_phdr to find the paths. This is a linux specific
function, but it does provide "/lib/<arch>" and "/usr/lib/<arch>"
at the point ssl symbols are being resolved when running the
qsslsocket autotest (which has less dependencies than a typical
Qt app).
Task-number: QTBUG-24694
Change-Id: I9af8081f41bb85c2fcff450a2acda5672a7f7518
Reviewed-by: Harald Fernengel <[email protected]>
Diffstat (limited to 'src/sql/drivers/psql/qsql_psql.cpp')
0 files changed, 0 insertions, 0 deletions
