diff options
author | Niclas Rosenvik <nros@netbsd.org> | 2021-03-20 09:31:43 +0000 |
---|---|---|
committer | Niclas Rosenvik <nros@netbsd.org> | 2021-03-22 21:31:09 +0000 |
commit | 75296f347f2781fff44f8fcfea5a3fa0413e287e (patch) | |
tree | d1bdd58263f0e28d600c0b382e7e03eb250859c5 /src/corelib/configure.json | |
parent | 65b4937f341134fbb1082050b7ae8ecf5c0ba564 (diff) |
Fix backtrace on non-linux systems
On BSD systems backtrace lies in libexecinfo. Use
FindBacktrace from CMake to be able to resolve
backtrace on more unixes than linux.
Change-Id: Ie14fd1727d2da03645fc2d6de10c0217baabad6b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/configure.json')
-rw-r--r-- | src/corelib/configure.json | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/corelib/configure.json b/src/corelib/configure.json index 637e603c97..4643531135 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -22,6 +22,17 @@ }, "libraries": { + "backtrace": { + "label": "backtrace", + "test": { + "main": + [ "void *buffer[100];", + "int nptrs = backtrace(buffer, 100);" + ] + }, + "headers": "execinfo.h", + "sources": [ "-lexecinfo" ] + }, "doubleconversion": { "label": "DoubleConversion", "test": { @@ -718,6 +729,11 @@ "condition": "features.system-pcre2 || features.pcre2", "output": [ "publicFeature", "feature" ] }, + "backtrace": { + "label": "backtrace", + "condition": "config.unix && features.regularexpression && libs.backtrace", + "output": [ "privateFeature" ] + }, "sharedmemory": { "label": "QSharedMemory", "purpose": "Provides access to a shared memory segment.", @@ -1013,6 +1029,7 @@ Note that this is required for plugin loading. Qt GUI needs QPA plugins for basi { "section": "Qt Core", "entries": [ + "backtrace", "doubleconversion", "system-doubleconversion", "glib", |