]> git.ipfire.org Git - thirdparty/openssl.git/commit - Configure
Allow asan, msan and ubsan to be configured with shared libraries
authorRichard Levitte <levitte@openssl.org>
Wed, 7 Sep 2016 18:56:20 +0000 (20:56 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 7 Sep 2016 19:53:45 +0000 (21:53 +0200)
commit342a1a23793cb99921abeabe882adf8652ba715d
treec509817857c6056eb515fb30a1ba00989259e329
parent978ecbb08be69864c2a85524eafbdb70487becb0
Allow asan, msan and ubsan to be configured with shared libraries

The background story is that util/shlib_wrap.sh was setting LD_PRELOAD
or similar platform dependent variables, just in case the shared
libraries were built with -rpath.  Unfortunately, this doesn't work
too well with asan, msan or ubsan.

So, the solution is to forbid the combination of shared libraries,
-rpath and any of the sanity analyzers we can configure.

This changes util/shlib_wrap.sh so it only contains the code that sets
LD_PRELOAD when -rpath has been used when configuring.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl
Configure
util/build.info [new file with mode: 0644]
util/shlib_wrap.sh.in [moved from util/shlib_wrap.sh with 96% similarity]