From: Arun Prakash Jana Date: Thu, 23 Jan 2020 16:52:07 +0000 (+0530) Subject: Add static compilation flag X-Git-Tag: v3.0~49 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d67ad843600657c6658ddf028e378db5b6d18c08;p=nnn.git Add static compilation flag make command: make O_STATIC=1 O_NORL=1 strip --- diff --git a/Makefile b/Makefile index b751f90e..6b99a059 100644 --- 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 diff --git a/README.md b/README.md index 7d856969..3b9dbd85 100644 --- 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.