From b2d2b655e58d5337765c26dafa836b12e019c6a4 Mon Sep 17 00:00:00 2001 From: BogDan Vatra Date: Wed, 14 Feb 2018 10:44:21 +0200 Subject: 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 --- src/corelib/configure.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/corelib/configure.json') 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": [ "", -- cgit v1.2.3