diff --git a/Developer-guides.md b/Developer-guides.md index a26ef56..f76065d 100644 --- a/Developer-guides.md +++ b/Developer-guides.md @@ -118,15 +118,10 @@ The following procedure is tested on Ubuntu 16.04 amd64 for the **`norl`** targe 1. Install the GPM development library. 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) - to - $(CC) -DNORL $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -static $< $(LDLIBS) -lgpm -3. Compile the package. - - make O_NORL=1 strip -4. Verify the binary. + make O_STATIC=1 O_NORL=1 strip +3. Verify the binary. 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