Improve README.md

This commit is contained in:
Alex Kotov 2021-12-15 05:10:40 +05:00
parent a252be4db2
commit da90e4f202
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 7 additions and 6 deletions

View File

@ -68,15 +68,16 @@ environment.
Create configuration script with `./autogen.sh`.
Configure with [cross-compiler](https://wiki.osdev.org/GCC_Cross-Compiler) in
`$PATH` to make without it in `$PATH`:
Let's assume that your target triplet is `i386-elf`. Configure with
[cross-compiler](https://wiki.osdev.org/GCC_Cross-Compiler) in `$PATH` to make
without it in `$PATH`:
```
./configure \
--host='i386-elftailix' \
AR="$(which i386-elftailix-ar)" \
CC="$(which i386-elftailix-gcc)" \
RANLIB="$(which i386-elftailix-ranlib)" \
--host='i386-elf' \
AR="$(which i386-elf-ar)" \
CC="$(which i386-elf-gcc)" \
RANLIB="$(which i386-elf-ranlib)" \
CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
```