Glibc meets Clang
This page is about building Glibc with Clang. For now it contains a list of random facts on this subject.
- The configure script does not accept clang ("These critical programs are missing or too old: compiler")
regcomp does not build due to nested functions. https://sourceware.org/ml/libc-alpha/2014-09/msg00670.html
- files that include dynamic-link.h do not build due to nested functions.
Glibc build uses flags that clang does not understand and extensions that require special clang flags. Attached clang wrapper tries to fix that, but eventually these fixes will need to be done in the source and the build system.
strtol is incorrectly linked: http://llvm.org/bugs/show_bug.cgi?id=22830