mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add static compilation flag
make command: make O_STATIC=1 O_NORL=1 strip
This commit is contained in:
parent
50df09b918
commit
d67ad84360
6
Makefile
6
Makefile
|
@ -57,6 +57,12 @@ CFLAGS += $(CFLAGS_CURSES)
|
||||||
|
|
||||||
LDLIBS += $(LDLIBS_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
|
DISTFILES = src nnn.1 Makefile README.md LICENSE
|
||||||
SRC = src/nnn.c
|
SRC = src/nnn.c
|
||||||
HEADERS = src/nnn.h
|
HEADERS = src/nnn.h
|
||||||
|
|
|
@ -180,4 +180,4 @@ Completion scripts for Bash, Fish and Zsh are [available](misc/auto-completion).
|
||||||
- [Maxim Baz](https://github.com/maximbaz)
|
- [Maxim Baz](https://github.com/maximbaz)
|
||||||
- and other contributors
|
- 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.
|
||||||
|
|
Loading…
Reference in a new issue