Add support for shared libasan
This makes it possible to test the Python bindings with ASan as well.
- Add a configure option which adds
-shared-libasan
toAM_LDFLAGS
. - Find the library path by running
clang -print-file-name=libclang_rt.asan-x86_64.so
- Add the path to
LD_PRELOAD
when running tests.
Note that shared libasan is the default on macOS and already works nicely.
Edited by Nick Wellnhofer