Skip to content

Using with dietlibc

Frank Earl edited this page Dec 12, 2019 · 2 revisions

To recompile the runit programs with the diet libc:

  1. Verify you have the latest version of (diet libc)[http://www.fefe.de/dietlibc/] installed on your sysroot.
  2. Change into the runit sources directory.
  3. Export the following modification to your C compiler default commandline- "export CC="diet -Os $CC" where diet is the searchable path to the diet libc wrapper for things.
  4. Ensure your CMake environment is at distclean stage (No CMakeFiles or other related cache files from a cmake . or similar present in the build directory)
  5. Run cmake on the project sources for a builddir setup for make to build your code.
  6. Build things as normal from there on out.

Clone this wiki locally