From d67ad843600657c6658ddf028e378db5b6d18c08 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 23 Jan 2020 22:22:07 +0530 Subject: Add static compilation flag make command: make O_STATIC=1 O_NORL=1 strip --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b751f90..6b99a05 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 -- cgit v1.2.3-70-g09d2