]> git.ipfire.org Git - thirdparty/libtool.git/commit
notes.texi: Specify -lasan with -fsanitize=address in g++
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 13 Mar 2024 17:08:54 +0000 (19:08 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 13 Mar 2024 17:08:54 +0000 (19:08 +0200)
commit3561199667a999c969d18be0d404d0ad2576c2e4
tree67c68b84dc9ec018a812af346dac3be20cd9e52d
parentb07d71b36dc231c2bc27fcaa314611035f9127e5
notes.texi: Specify -lasan with -fsanitize=address in g++

When using the flag -fsanitize=address with g++, the user should also
specify -lasan to ensure linking occurs correctly. libtool uses
-nostdlib, and gcc implicitly includes -lasan when -fsanitize=address
is used. However, g++ does not implicitly include -lasan. The
documentation has been updated to reflect this information rather than
adding the -lasan flag to libtool.

* doc/notes.texi: Document that the user should pass -lasan.
doc/notes.texi