Created attachment 498054 [details, diff] ninja-uclibc.patch dev-util/ninja-1.7.2 does not compile as is on uclibc-ng, because the default GetLoadAverage method expects a a getloadavg function from a libc, but uclibc-ng does not provide it. The following patch implements the method using the sysinfo system call (Linux-specific but uclibc-ng is Linux-specific) Also added a fix to build on older uclibc-ng releases, based on traditional C libraries layout. It should not interfere with the musl-inspired "put everything in libc.so.0 and make symlinks for traditional library names" approach.
This is already fixed in >=dev-util/ninja-1.8.0. https://github.com/ninja-build/ninja/commit/76abf78aac8c56606fb52ea874873d790b9044da