Setup demonstrated is only for ELF-ish platforms.
Also note:
- Use of redirectors is a temporary scheme. They will be removed once LLVM-libc has implementations for the redirected functions.
- Redirectors are optional. One can choose to not include them in the LLVM-libc build for their platform.
- Even with redirectors used, we want to link to the system libc dynamically.
You may need something like -nostdlib