'AC_CHECK_LIB(asan, _init) succeeds for some reason

I am trying to figure out how AC_CHECK_LIB([asan], [_init], ,[...]) succeeds despite the source for asan not having a symbol called _init.

I verified the symbols by using nm -D /path/to/libasan. There is only one matching symbol called __asan_init.

Shouldn't autoconf fail with error saying it is unable to locate symbol init in the said library?

Regards



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source