diff options
author | BogDan Vatra <bogdan@kdab.com> | 2018-02-14 10:44:21 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-26 14:38:52 +0000 |
commit | 5a8b2e1bb0ee9e02146cbbaa927a3c73ec8c1082 (patch) | |
tree | b52cc348f28e0f421f5b8b762a026e2df65dd794 | |
parent | fd28373112a5abf8a4ef1fc783f7e596bbb39efd (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>
(cherry picked from commit b2d2b655e58d5337765c26dafa836b12e019c6a4)
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
-rw-r--r-- | src/corelib/configure.json | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/configure.json b/src/corelib/configure.json index 6002e1d4fc..f06f115f5f 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -129,7 +129,11 @@ "label": "dlopen()", "test": { "include": "dlfcn.h", - "main": "dlopen(0, 0);" + "main": [ + "dlclose(dlopen(0, 0));", + "dlsym(RTLD_DEFAULT, 0);", + "dlerror();" + ] }, "sources": [ "", |