Bug#928254: gcc-8: -static-libasan does not work with GNU MPFR
On 2019-05-01 20:54:05 +0200, Matthias Klose wrote:
> the linker never sees your CFLAGS. At least -static-libasan needs to
> be added to LDFLAGS.
Indeed, I can see -static-libasan in the "libtool --mode=link" line,
but libtool drops this option in the gcc call:
/bin/sh ../libtool --tag=CC --mode=link gcc -O0 -march=native -fsanitize=address -static-libasan -version-info 6:0:0 -Wl,--disable-new-dtags -o libmpfr.la -rpath /usr/local/lib [.lo files] -lgmp
libtool: link: gcc -shared -fPIC -DPIC [.o files] -lgmp -O0 -march=native -fsanitize=address -Wl,--disable-new-dtags -Wl,-soname -Wl,libmpfr.so.6 -o .libs/libmpfr.so.6.0.0
Why does libtool do that, while it preserves
"-O0 -march=native -fsanitize=address"?
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: