Yocto and Buildroot will compile, from scratch, an entire gcc crosstool chain with standard library suite and headers to build fast and then deploy to your target. This exists.
the various embedded build systems make cross-compiling easy at scale, which means you often don't need to think about it when adding a new package