[vlc-devel] [PATCH] configure.ac: unbreak AM_ICONV tests with -lasan

Rémi Denis-Courmont remi at remlab.net
Tue Nov 14 18:10:47 CET 2017

Le tiistaina 14. marraskuuta 2017, 17.57.47 EET Francois Cartegnie a écrit :
> Le 14/11/2017 à 17:54, Rémi Denis-Courmont a écrit :
> >> - Specifying ASAN_OPTIONS=exitcode=0 for the entire configure process
> > 
> > That is what I have always done. Otherwise, make check also fails due to
> > bugs in external libraries.
> > 
> > But the simpler work-around to *both* missing symbols and memory leaks, as
> > well as to any other hypothetical sanitizer interference during configure,
> > consists of enabling sanitizers later in the process - after all the link
> > and run configure tests are done.
> Another issue is the configure recheck being run without those env
> variables. (bisect, etc)

Sorry but that amounts to PEBKAC.

autotools explicitly require that the build environment does not change for a 
given build directory, or then you have to run distclean.

autoconf tries to help and detect inconsistency with well-known variables. It 
also saves explicitly provided environment variables as parameters to the 
configure script, e.g.:

./configure LSAN_OPTIONS="exitcode=0"

This is as good as it gets; any build system will have similar limitations.


More information about the vlc-devel mailing list