Use build tags to enable static linking

This commit is contained in:
Junegunn Choi
2015-09-22 13:16:10 +09:00
parent 5a60aa5050
commit ad7e433a7d
2 changed files with 5 additions and 6 deletions

View File

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