The attached patch adds musl support to config.site.
I enjoy playing around with porting and running Gentoo on various bits of hardware I have around the house. Some of these machines relics (old Pentium i586), some of them are very powerful (quad-core ARM, dual PPC G4, dual-core MIPS). I have been toying with using the musl libc on the older machines. However, I need a separate config.site for musl as it has some pretty wild differences compared to glibc and putting them in the default 'linux' file doesn't make much sense.
As I pin down further what are red herrings and what are actually necessary, I may follow this up with another patch adding my linux-musl and i386-linux-musl files.
Steps to Reproduce:
1. # crossdev powerpc-apple-linux-gnu
2. # crossdev i586-pc-linux-musl
3. Try to emerge, say, sed on the musl one (or almost half of @system). It needs ac_use_included_regex=yes in the autoconf site include. But glibc does not need it.
Packages such as procps, sed, coreutils won't merge on musl due to needing specific definitions in the autoconf site include.
The ability to merge @system.
Created attachment 406212 [details, diff]
Add musl libc support to config.site.