我在使用Go時曾期待過一個靜態二進制文件。爲什麼我的Go應用程序沒有靜態鏈接?
[email protected]:~/gospace$ go build src/runk/runk.go
[email protected]:~/gospace$ file runk
runk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
[email protected]:~/gospace$
對於什麼是錯誤的任何建議?使用包像net
和os/user
當
嘗試'LDD runk'看什麼'runk'鏈接。 –