Hello,you can contain the libiconv.a in package, like the following:
garfeng opened this issue · comments
garfeng commented
In iconv.go
// #cgo darwin LDFLAGS: -liconv_darwin_amd64 -L${SRCDIR}
// #cgo windows LDFLAGS: -liconv_windows_amd64 -L${SRCDIR}
filelist in root dir:
iconv.go
...
libiconv_darwin_amd64.a
libiconv_windows_amd64.a
So we do not need to install libiconv.
Also, the program will be built with the the libiconv.a archived in it , instead of running with dynamic libraries.
Refer to github.com/andlabs/ui
感谢大大们提供的绑定,好用的飞起~