README.md 973 B

Minimal C Development Environment

Why?

I don't have any particular reason not to have a working C compiler everywhere you go.

Components

The resulting directory is ~8.5 MiB.

Usage

Can be used in limited environments when you need some quick and dirty in-place development. I keep it inside my initramfs just in case.

TCC usage in the environment

The script only builds static version of musl so the only working binaries will be static unless you provide your own Libc.

Adding as initramfs

My /usr/src/linux/.config file contains the line

CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs/base /usr/src/initramfs/list"

In this case the base is the resulting directory of the build, and the list file contains some additional tools from my host system I need inside initramfs (like lvm).