mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-21 15:33:50 -07:00
Build partially-static binary for linux (#350)
Instead of building a separate statically-linked binary, build partially-static binary that only contains ncurses to avoid compatibility issues in libc.
This commit is contained in:
@@ -3,7 +3,9 @@ package curses
|
||||
/*
|
||||
#include <ncurses.h>
|
||||
#include <locale.h>
|
||||
#cgo LDFLAGS: -lncurses
|
||||
#cgo darwin LDFLAGS: -lncurses
|
||||
#cgo linux,386 LDFLAGS: -lncurses
|
||||
#cgo linux,amd64 LDFLAGS: -l:libncurses.a -l:libtinfo.a -l:libgpm.a
|
||||
*/
|
||||
import "C"
|
||||
|
||||
|
Reference in New Issue
Block a user