summaryrefslogtreecommitdiffstats
path: root/src/corelib/configure.json
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2018-02-14 10:44:21 +0200
committerBogDan Vatra <bogdan@kdab.com>2018-02-26 08:58:34 +0000
commitb2d2b655e58d5337765c26dafa836b12e019c6a4 (patch)
treeae2c70c4bad4d78de0ec6073b894b47796f595e9 /src/corelib/configure.json
parent8bb33c2509a9c7011bba5f6cade34dc293fb85af (diff)
Fix compile with sanitize address & undefined
On Debian 9, the sanitize library exports only dlopen symbol, but it doesn't export the other ones. We need to check all dl symbols that we use, otherwise "-ldl" will not be added to the libs list. Task-number: QTBUG-64864 Change-Id: I3e62b82985348c40b8b61302ba589d5564598e18 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/corelib/configure.json')
-rw-r--r--src/corelib/configure.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/configure.json b/src/corelib/configure.json
index 9f9512942a..92b2b0b1ad 100644
--- a/src/corelib/configure.json
+++ b/src/corelib/configure.json
@@ -130,7 +130,11 @@
"label": "dlopen()",
"test": {
"include": "dlfcn.h",
- "main": "dlopen(0, 0);"
+ "main": [
+ "dlclose(dlopen(0, 0));",
+ "dlsym(RTLD_DEFAULT, 0);",
+ "dlerror();"
+ ]
},
"sources": [
"",