]> Sergey Matveev's repositories - nnn.git/commitdiff
Add static compilation flag
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 23 Jan 2020 16:52:07 +0000 (22:22 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 23 Jan 2020 16:52:07 +0000 (22:22 +0530)
make command:

make O_STATIC=1 O_NORL=1 strip

Makefile
README.md

index b751f90e0bed226a5f10e76727e2624e6b5440fc..6b99a0590e2b66fb301dcc4145b18314d0f46cae 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,12 @@ CFLAGS += $(CFLAGS_CURSES)
 
 LDLIBS += $(LDLIBS_CURSES)
 
+# static compilation needs libgpm development package
+ifeq ($(O_STATIC),1)
+       LDFLAGS += -static
+       LDLIBS += -lgpm
+endif
+
 DISTFILES = src nnn.1 Makefile README.md LICENSE
 SRC = src/nnn.c
 HEADERS = src/nnn.h
index 7d8569692b4e10a0c396fdd48986905be2e14cf6..3b9dbd85176c56b7787352091dff4a079a8d9c04 100644 (file)
--- a/README.md
+++ b/README.md
@@ -180,4 +180,4 @@ Completion scripts for Bash, Fish and Zsh are [available](misc/auto-completion).
 - [Maxim Baz](https://github.com/maximbaz)
 - and other contributors
 
-`nnn` is actively developed. Visit the to the [ToDo list](https://github.com/jarun/nnn/issues/386) to contribute or see the features in progress.
+`nnn` is actively developed. Visit the to the [ToDo list](https://github.com/jarun/nnn/issues/448) to contribute or see the features in progress.