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.
will generate the instantiations. For Portland pgCC version5, use
@code{CXX='pgCC --one_instantiation_per_object'} and avoid parallel @command{make}.
+@item
+For C++ code, it may be neccesary to specify a library if it is a dependency
+of a link/compile flag. For example in GNU G++, if you want to use
+@code{-fsanitize=address} you need to to specify the @code{-lasan} library,
+like so: @code{g++ -o libx.la -fsanitize=address -lasan -rpath [...]}.
+
@item
On Darwin, for C++ code with templates you need two level shared libraries.
Libtool builds these by default if @env{MACOSX_DEPLOYMENT_TARGET} is set to