Skip to content
Snippets Groups Projects
Unverified Commit d6d97dad authored by Arnaud Vrac's avatar Arnaud Vrac Committed by Quentin Glidic
Browse files

configure.ac: fix linking when using compiler sanitizers


The GCC address sanitizer overrides dlopen and dlclose, so the configure
test does not detect libdl as a needed dependency for linking. It is
still needed though, as dlsym is not exported by the sanitizer. The
result is that linking fails in the end.

Fix this by checking for dlsym instead of dlopen.

This can be reproduced by configuring the build with:
CFLAGS="-fsanitize=address -fsanitize=undefined"
LDFLAGS="-fsanitize=address -fsanitize=undefined"

Signed-off-by: default avatarArnaud Vrac <rawoul@gmail.com>
Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
parent 7b5fe9b0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment