amically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go
BuildID=IdU-e_SYkwhiX9RUPRZ1/FCjd89you8IzAl7nDax_/7ww2AvzWZX8UIdMsxhe8/o5djfvZtYWIn7ldfOiOl,
with debug_info, not stripped
# ldd .go/bin/swap
statically linked
-- AK
On Sat, Nov 19, 2022 at 6:03 PM Alexey Kuznetsov
wrote:
> 'fi
On Sat, Nov 19, 2022 at 5:49 PM Ian Lance Taylor wrote:
> On Sat, Nov 19, 2022, 6:46 AM Alexey Kuznetsov
> wrote:
>
>>
>> I'm trying to build statically linked binary and it works with 'build'
>> command but failed with 'install' command. Here i
Hello!
I'm trying to build statically linked binary and it works with 'build'
command but failed with 'install' command. Here is an example:
go build -ldflags "-linkmode external -extldflags -static" -a swap.go
# file swap
swap: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statical