Change README.md

This commit is contained in:
Alex Kotov 2021-12-12 21:29:39 +05:00
parent 534c512f32
commit 2b7fda767d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 18 additions and 1 deletions

View File

@ -12,6 +12,8 @@ Table of contents
* [Table of contents](#table-of-contents)
* [API](#api)
* [Tips](#tips)
* [Compilation](#compilation)
* [Cross-compilation](#cross-compilation)
* [Portability](#portability)
* [Discussion](#discussion)
@ -38,6 +40,21 @@ API
Tips
----
### Compilation
```
./autogen.sh
./configure
make
sudo make install
```
You can test with `make check`.
It's just a usual library. You can use most of it's APIs in hosted environment.
### Cross-compilation
Create configuration script with `./autogen.sh`.
Configure with [cross-compiler](https://wiki.osdev.org/GCC_Cross-Compiler) in
@ -52,7 +69,7 @@ Configure with [cross-compiler](https://wiki.osdev.org/GCC_Cross-Compiler) in
CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
```
When configuring with cross-compiler you can see the following messages. It's
You can see the following messages. It's
[a bug](https://savannah.gnu.org/support/index.php?110393) in **autoconf**, just
ignore it.