ПК

Size: a a a
ПК
DP
@
user@userbook:~$ go build -o /tmp/main /tmp/main.go
user@userbook:~$ ldd /tmp/main
linux-vdso.so.1 (0x00007ffcc8743000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbef5923000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbef5732000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbef5964000)
VL
ПК
user@userbook:~$ go build -o /tmp/main /tmp/main.go
user@userbook:~$ ldd /tmp/main
linux-vdso.so.1 (0x00007ffcc8743000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbef5923000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbef5732000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbef5964000)
@
ПК
ПК
ПК
а
user@userbook:~$ go build -o /tmp/main /tmp/main.go
user@userbook:~$ ldd /tmp/main
linux-vdso.so.1 (0x00007ffcc8743000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbef5923000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbef5732000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbef5964000)
tdakkota@tdakkota-pc:~$ export CGO_ENABLED=0; go build example.go; ldd example
not a dynamic executable
@