静态编译tig

x86

  • 执行./configure

  • 修改config.make
    image

  • 执行make

❯ file src/tig
src/tig: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=57cc012eb72a1964ca97d11e7cd767cbe74d36a5, for GNU/Linux 3.2.0, with debug_info, not stripped

ARM64

  • 修改config.make:
    image

上面的tinfo库需要安装如下软件包:

sudo apt install libtinfo-dev
posted @ 2022-11-24 20:19  摩斯电码  阅读(65)  评论(0编辑  收藏  举报