diff options
| author | 2020-01-23 22:22:07 +0530 | |
|---|---|---|
| committer | 2020-01-23 22:22:07 +0530 | |
| commit | d67ad843600657c6658ddf028e378db5b6d18c08 (patch) | |
| tree | ea678f6201e5c4b449dda10db4dfeda5387e027a /Makefile | |
| parent | 50df09b9186cf7cf9dd11238de658e255140eafb (diff) | |
| download | nnn-d67ad843600657c6658ddf028e378db5b6d18c08.tar.gz | |
Add static compilation flag
make command:
make O_STATIC=1 O_NORL=1 strip
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |