1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-11 13:06:14 +03:00

Updated Developer guides (markdown)

Piña Colada 2021-05-11 12:33:04 +05:30
parent f91394dd0e
commit 69749c49a0

@ -183,11 +183,11 @@ In this example we will compile `nnn` with [netbsd-curses](https://github.com/sa
#### Compile the shared and static libraries
sudo mkdir /opt/netbsd-curses
make CC=musl-gcc CFLAGS="-O3 -Wall -fPIC" -j4 all
sudo cp libcurses/libcurses.so libterminfo/libterminfo.so
sudo cp libcurses/libcurses.so libterminfo/libterminfo.so /opt/netbsd-curses/
make clean
make CC=musl-gcc make CFLAGS=-O3 LDFLAGS=-static all-static
sudo mkdir /opt/netbsd-curses
sudo cp libcurses/libcurses.a libterminfo/libterminfo.a /opt/netbsd-curses/
#### Compile `nnn`
@ -198,7 +198,7 @@ In this example we will compile `nnn` with [netbsd-curses](https://github.com/sa
# Shared custom
musl-gcc -O3 -DNORL -DNOLOCALE -DNOMOUSE -DNOBATCH -DNOFIFO -DTOURBIN_QSORT -DNOSSN -DNOUG -DNOX11 -march=corei7 -I/path_to/netbsd-curses/libcurses -o nnn src/nnn.c -Wl,-Bsymbolic-functions -L/opt/netbsd-curses -lcurses -lterminfo
# Note: For static compilation append `--static` to the above commands
# Note: For static compilation append `-static` to the above commands
# Strip the binary
strip nnn