Martin Storsjö wrote: > >> I ran into it while trying to build gettext with clang (with my pure-llvm > >> based toolchain, at https://github.com/mstorsjo/llvm-mingw in case you're > >> interested), so I presume there's something that goes different in gettext > >> with clang/lld compared to gcc > > > > Yes. It would make sense to compare the config.status file generated by an > > llvm > > build with those generated by a gcc build. > > Just for the record, I believe the root cause is the fact that libc++'s > stdlib.h (which is included before the normal C runtime's stdlib.h) > includes math.h since this change: https://reviews.llvm.org/D60097
Thanks for the investigation. That explains it indeed, because the C++ files of gettext do include <stdlib.h> but not <math.h> directly. Bruno