浏览代码

Add static compilation flag

make command:

make O_STATIC=1 O_NORL=1 strip
master
Arun Prakash Jana 5 年前
父节点
当前提交
d67ad84360
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. +6
    -0
      Makefile
  2. +1
    -1
      README.md

+ 6
- 0
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


+ 1
- 1
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.

正在加载...
取消
保存