Don't recurse into kernel-specific or architecture-specific subdirs not relevant to the host platform; only link the host platform's libsyscalls.