GO 的交叉編譯



編譯前看下
arm-linux-gnueabihf-gcc -fuse-ld=gold -Wl,--version
是不是支持gold 連接 ,如果不支持,就得更換編譯器了。gcc-7 的應該就沒有問題 
因爲go just only  support the gold linker!

export GOARCH=arm
export GOOS="linux"
export GOARM=6                             #armv6, armv7 armv8....  
export CGO_ENABLED=1
export CC=arm-linux-gnueabi-gcc

go  build  target

 

edged-memory-capacity-bytes:  It is the capacity of memory capacity of edge node which is allocatable to pods that will be scheduled on the node.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章