修正说明.

Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
chen.yang 2021-12-13 19:31:15 +08:00
parent 3c3c945c31
commit 217f1ca834
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ func PrintTest(strInput string) {
编译 Go Plugin 命令,生成 print.so
```bash
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build -buildmode=plugin
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build -buildmode=plugin -o print.so print.go
```
再新建 main 包用于测试:
@ -120,7 +120,7 @@ func main() {
编译 main 包:
```bash
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gc
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabihf-gcc go build
```
需要将 print.so 和 main 程序一起上传到目标系统。