On Wed, 15 Jan 2025 07:42:24 GMT, SendaoYan <s...@openjdk.org> wrote:

> Hi all,
> This PR fix the bugs which build fails "undefined symbol: __asan_init" by 
> clang17 with configure parameter "--enable-asan".
> With clang, [-static-libsan is the 
> default](https://github.com/google/sanitizers/issues/1086#issuecomment-509775957),
>  -shared-libsan forces the linker to use the shared asan run-time. And with 
> [gcc there is no this 
> issue](https://github.com/google/sanitizers/issues/1169#issuecomment-558947352).
> This PR append `-shared-libasan` link flags to `ASAN_LDFLAGS` will fix the 
> make failure. The change has been verified locally, risk is low.

This pull request has now been integrated.

Changeset: e7795ccd
Author:    SendaoYan <s...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/e7795ccdd9066804a8c93e8af0aa45e49bd20846
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8347347: Build fails undefined symbol: __asan_init by clang17

Reviewed-by: erikj, jwaters

-------------

PR: https://git.openjdk.org/jdk/pull/23124

Reply via email to