mirror of
https://github.com/jarun/nnn.git
synced 2024-11-30 06:41:28 +00:00
Updated Developer guides (markdown)
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
|
#### Compile the shared and static libraries
|
||||||
|
|
||||||
|
sudo mkdir /opt/netbsd-curses
|
||||||
make CC=musl-gcc CFLAGS="-O3 -Wall -fPIC" -j4 all
|
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 clean
|
||||||
make CC=musl-gcc make CFLAGS=-O3 LDFLAGS=-static all-static
|
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/
|
sudo cp libcurses/libcurses.a libterminfo/libterminfo.a /opt/netbsd-curses/
|
||||||
|
|
||||||
#### Compile `nnn`
|
#### Compile `nnn`
|
||||||
|
@ -198,7 +198,7 @@ In this example we will compile `nnn` with [netbsd-curses](https://github.com/sa
|
||||||
# Shared custom
|
# 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
|
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 the binary
|
||||||
strip nnn
|
strip nnn
|
||||||
|
|
Loading…
Reference in a new issue