In some systems, libatomic.so is at gcc specific dir(e.g. /lib/gcc/powerpc-unknown-linux-gnu/13), rather than the system library path.
In this case, find_library cannot find libatomic.
Use check_linker_flag to fix this, and remove unused MI_USE_LIBATOMIC option.
May fix #798
In some systems, libatomic.so is at gcc specific dir(e.g.
/lib/gcc/powerpc-unknown-linux-gnu/13
), rather than the system library path. In this case, find_library cannot find libatomic. Use check_linker_flag to fix this, and remove unused MI_USE_LIBATOMIC option. May fix #798Tested in: x86_64-pc-linux-musl aarch64-unknown-linux-musl armv6j-unknown-linux-musleabihf powerpc-unknown-linux-gnu