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.

Thanks all for the reviews.

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

PR Comment: https://git.openjdk.org/jdk/pull/23124#issuecomment-2596058787

Reply via email to