Fixed build of SSL when using android-no-sdk.
Introduced Q_OS_ANDROID_NO_SDK which makes more sense than Q_OS_LINUX_ANDROID when Q_OS_ANDROID also defines Q_OS_LINUX. Change-Id: Id2aa228b66daffba82776a12c91a264a360afd86 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
parent
6b68be9587
commit
c2f17ad937
@ -47,7 +47,7 @@ include(../../common/gcc-base-unix.conf)
|
||||
|
||||
CONFIG = qt warn_on release link_prl
|
||||
QT = core gui
|
||||
DEFINES += Q_OS_LINUX_ANDROID HAVE_ANDROID_OS
|
||||
DEFINES += Q_OS_LINUX_ANDROID HAVE_ANDROID_OS Q_OS_ANDROID_NO_SDK
|
||||
DEFINES += Q_ANDROID_VERSION_MAJOR=$$ANDROID_VERSION_MAJOR
|
||||
DEFINES += Q_ANDROID_VERSION_MINOR=$$ANDROID_VERSION_MINOR
|
||||
DEFINES += QT_NO_PRINTER QT_NO_PRINTDIALOG QT_NO_EXCEPTIONS
|
||||
|
@ -67,7 +67,7 @@
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include <QtCore/qdir.h>
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID_NO_SDK)
|
||||
#include <link.h>
|
||||
#endif
|
||||
|
||||
@ -383,7 +383,7 @@ static bool libGreaterThan(const QString &lhs, const QString &rhs)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID_NO_SDK)
|
||||
static int dlIterateCallback(struct dl_phdr_info *info, size_t size, void *data)
|
||||
{
|
||||
if (size < sizeof (info->dlpi_addr) + sizeof (info->dlpi_name))
|
||||
@ -414,7 +414,9 @@ static QStringList libraryPathList()
|
||||
paths << QLatin1String("/lib64") << QLatin1String("/usr/lib64") << QLatin1String("/usr/local/lib64");
|
||||
paths << QLatin1String("/lib32") << QLatin1String("/usr/lib32") << QLatin1String("/usr/local/lib32");
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(Q_OS_ANDROID_NO_SDK)
|
||||
paths << QLatin1String("/system/lib");
|
||||
#elif defined(Q_OS_LINUX)
|
||||
// discover paths of already loaded libraries
|
||||
QSet<QString> loadedPaths;
|
||||
dl_iterate_phdr(dlIterateCallback, &loadedPaths);
|
||||
|
Loading…
Reference in New Issue
Block a user