mirror of
https://github.com/jarun/nnn.git
synced 2024-11-26 09:52:12 +03:00
Updated Developer guides (markdown)
parent
b79b41a13b
commit
534587e074
@ -118,15 +118,10 @@ The following procedure is tested on Ubuntu 16.04 amd64 for the **`norl`** targe
|
|||||||
1. Install the GPM development library.
|
1. Install the GPM development library.
|
||||||
|
|
||||||
sudo apt install libgpm-dev
|
sudo apt install libgpm-dev
|
||||||
2. Change the Makefile target `$(BIN)` to enable static compilation.
|
2. Compile the package.
|
||||||
|
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
make O_STATIC=1 O_NORL=1 strip
|
||||||
to
|
3. Verify the binary.
|
||||||
$(CC) -DNORL $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -static $< $(LDLIBS) -lgpm
|
|
||||||
3. Compile the package.
|
|
||||||
|
|
||||||
make O_NORL=1 strip
|
|
||||||
4. Verify the binary.
|
|
||||||
|
|
||||||
file nnn
|
file nnn
|
||||||
nnn: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=1be54d27687f83cf42393dd59dba2723798956de, stripped
|
nnn: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=1be54d27687f83cf42393dd59dba2723798956de, stripped
|
||||||
|
Loading…
Reference in New Issue
Block a user