Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 663 Bytes

File metadata and controls

37 lines (28 loc) · 663 Bytes

编译 Go 源码

安装 Go

#ubuntu
sudo apt-get install golang

获取 Go 源码

git clone https://github.com/golang/go.git

运行编译脚本

cd go/src
#ubuntu
sudo ./make.bash

查看 Go 依赖库

#ubuntu
# readelf -d ../bin/go | grep NEEDED
0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]