diff options
Diffstat (limited to 'docs/BUILDING_COREUTILS_WITH_DIETCC.txt')
-rw-r--r-- | docs/BUILDING_COREUTILS_WITH_DIETCC.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/BUILDING_COREUTILS_WITH_DIETCC.txt b/docs/BUILDING_COREUTILS_WITH_DIETCC.txt new file mode 100644 index 0000000..79fa2ea --- /dev/null +++ b/docs/BUILDING_COREUTILS_WITH_DIETCC.txt @@ -0,0 +1,18 @@ +As a test for dietc, we've ensured that we can build a mostly-working version +of GNU coreutils. Note that this has only been checked on GCC-on-Debian; likely +won't work on other platforms. + +$ cd /dietc/root/directory +$ make +$ cd /tmp/ +$ curl -OL https://ftp.gnu.org/gnu/coreutils/coreutils-9.3.tar.xz +$ tar -xvf coreutils-9.3.tar.xz +$ cd coreutils-9.3 +$ vim lib/config.hin + rewrite "# define _GL_INLINE inline" + to "# define _GL_INLINE extern inline" +$ vim lib/malloc/scratch_buffer.h + add "#include <lib/scratch_buffer.h>" +$ CC=/home/matthew/repos/dietc/scripts/dietcc ./configure +... +$ make -j8 |