-all-static also does glibc, which conflicts with at least pthread