交叉编译openharmony版的go(命令不准仅供参考)

编译go

 1197  export PATH=$PATH:~/radxa2/go/bin
 1086  export GO_CCFLAGS="-Wno-sizeof-array-div"
 1199  export GOOS=linux
 1200  export GOARCH=arm64
 1201  export GOROOT_BOOTSTRAP=/home/user/radxa2/go

 1216  git checkout -bgo1.21.9 go1.21.9
 1222  git status
 1223  git clean -fdx
 1224  git reset --hard
 1225  CC=musl-gcc ./make.bash

 1226  git checkout -bgo1.16 go1.16
 1222  git status
 1223  git clean -fdx
 1224  git reset --hard
 1227  CC=musl-gcc ./make.bash

 1228  git checkout -bgo1.17.13 go1.17.13
 1222  git status
 1223  git clean -fdx
 1224  git reset --hard
 1229  CC=musl-gcc ./make.bash
posted @ 2025-02-19 23:15  老禾的账本  阅读(48)  评论(0)    收藏  举报