2 Using with dietlibc
Frank Earl edited this page 2019-12-12 12:47:28 -06:00

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. (If you've got diet in the search path, nothing else should be needed)
  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.