Note that you do not need this toolchain to build rtmk itself. The toolchain is used to build software that are using the rtmk microkernel.
The GNU C library should not be built in the source directory. I suggest that you do not build the others in their source directories as well.
$ cd binutils-2.11.1 $ zcat ~/binutils-2.11.1-rtmk-patch.gz | patch -p1Configure for target
`i686-pc-rtmk'
and just run `make install'
.
$ cd gcc-3.0.1 $ zcat ~/gcc-3.0.1-rtmk-patch.gz | patch -p1Configure for target
`i686-pc-rtmk'
and just run `make install'
.
$ cd rtmk-VERSION $ CC=i686-pc-rtmk-gcc CFLAGS="-nostdlib -nostartfiles -g -O2" AR=i686-pc-rtmk-ar \ RANLIB=i686-pc-rtmk-ranlib ./configure --host=i686-pc-rtmk ... $ make install prefix=/usr/local/i686-pc-rtmkThis will install the headers into
/usr/local/i686-pc-rtmk/include
, which is in
the default include search path. Also the rtmk library in /usr/local/i686-pc-rtmk/lib.
$ cd glibc-2.2.4 $ zcat ~/glibc-2.2.4-rtmk-patch.gz | patch -p1 $ mkdir build ; cd build $ CC=i686-pc-rtmk-gcc AR=i686-pc-rtmk-ar RANLIB=i686-pc-rtmk-ranlib AS=i686-pc-rtmk-as \ ../configure --host=i686-pc-rtmk --disable-shared --with-elf --disable-profile --enable-libio --disable-sanity-checksAfter this, you should be able to simply just run
`make install prefix=/usr/local/i686-pc-rtmk/'
.