Kito Cheng writes: > I am thinking that maybe we should add > -mlibc=[newlib|newlib-nano|picolibc|unknown] option to bare-matel > toolchain, one reason is having an unify interface to select libc > implementation between clang/LLVM, spec file is a GCC specific stuff, > that cause very bad compatibility between GCC and clang/LLVM, and > having option to control that would be better since clang/LLVM don't > have those configure time option. You can create specs file for each library so that you select the library with --specs=picolibc.specs or --specs=newlib-nano.specs. That seems sufficient as you can mess with various compiler options and set the header paths. Crosstool-ng does this and it enables delivering newlib, newlib-nano and picolibc in the same toolchain. -- -keith