Use build tags to enable static linking

This commit is contained in:
Junegunn Choi committed 2015-09-22 13:16:50 +09:00
1 parent 5a60aa5050
commit ad7e433a7d
2 files changed
+5 -6

No files matched your search

+2 -3
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"