From 2b7fda767d79bc8dac5f77625382f5fca0c2aa4e Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 12 Dec 2021 21:29:39 +0500 Subject: [PATCH] Change README.md --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0128f6c..cbbb907 100644 --- a/README.md +++ b/README.md @@ -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.