mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-30 10:05:58 +00:00
Use build tags to enable static linking
This commit is contained in:
1 parent
5a60aa5050
commit
ad7e433a7d
2 files changed
+5
-6
No files matched your search
@@ -3,9 +3,8 @@ package curses
|
||||
/*
|
||||
#include <ncurses.h>
|
||||
#include <locale.h>
|
||||
#cgo darwin LDFLAGS: -lncurses
|
||||
#cgo linux,386 LDFLAGS: -lncurses
|
||||
#cgo linux,amd64 LDFLAGS: -l:libncurses.a -l:libtinfo.a -l:libgpm.a -ldl
|
||||
#cgo !static LDFLAGS: -lncurses
|
||||
#cgo static LDFLAGS: -l:libncurses.a -l:libtinfo.a -l:libgpm.a -ldl
|
||||
*/
|
||||
import "C"
|
||||
|
||||
|
||||
Reference in new issue
Block a user