summaryrefslogtreecommitdiffhomepage
path: root/auto/unix
diff options
context:
space:
mode:
Diffstat (limited to 'auto/unix')
-rw-r--r--auto/unix6
1 files changed, 5 insertions, 1 deletions
diff --git a/auto/unix b/auto/unix
index 59c7f68a..acacce0d 100644
--- a/auto/unix
+++ b/auto/unix
@@ -73,6 +73,8 @@ fi
# FreeBSD dlopen() is in libc.
# MacOSX libdl.dylib is a symlink to libSystem.dylib.
+# GCC5 AddressSanitizer intercepts dlopen() and dlclose() but not dlsym()
+# so all dynamic linker functions should be tested.
NXT_LIBDL=
@@ -85,7 +87,9 @@ nxt_feature_test="#include <stdlib.h>
#include <dlfcn.h>
int main() {
- dlopen(NULL, 0);
+ void *h = dlopen(NULL, RTLD_NOW | RTLD_GLOBAL);
+ dlsym(h, \"\");
+ dlclose(h);
return 0;
}"
. auto/feature