sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

CC=arm-linux-gnueabihf-gcc CGO_LDFLAGS="-static" CXX=arm-linux-gnueabihf-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build

Last modification:May 9th, 2022 at 03:03 pm
如果觉得我的文章对你有用,请随意赞赏