I'm playing around with chroot environments, and I'd like to have a portable C compiler so that I can easily set up some basic build-tools in each environment without having to move too many libraries around.Gcc seems pretty bloaty for what I want to do, but if it's reasonably easy to build a static gcc I wouldn't mind a few dozen megabytes.I am also looking at the Tiny C Compiler, which is smaller but still looks like it's got an impressive feature set. However, running ./configure --help in the source directory doesn't list any option for building tcc statically, and I'm not sure how it might be done otherwise.
How can I get a static C compiler?
c;gcc;compiler;static linking
Building a static binary should be as simple as running gcc with -static, or if ld is being called directly use -Bstatic.  TryCFLAGS=-static makeafter running configure.  If it fails, the results will be obvious, e.g. rafts of undefined references at link time.