diff --git a/Developer-guides.md b/Developer-guides.md index 864c3ae..8a419dd 100644 --- a/Developer-guides.md +++ b/Developer-guides.md @@ -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