blob: 79fa2ea5a4c629eceedf3410f84ed3c483cb5f7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|