Why is symbol name `memcmp` special to `zig build-lib` and how to make it not special?

Vexu's comment on github issue:

__bitreversedi2 is a compiler-rt symbol so using it causes compiler-rt to be statically linked into the library. You can prevent that with -fno-compiler-rt but doing so might cause other problems.