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:
Junegunn Choi
2015-09-19 18:33:25 +09:00
parent 9398878048
commit 6bc3fe6e67
2 changed files with 10 additions and 27 deletions

View File

@@ -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"