Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Build statically linked executables #775
A statically linked executable is an executable that does not use any shared libraries.
At the moment the
What I need is this:
In go you can easily achieve this with:
Builds are configured in .travis.yml file. Maybe you can help me with that?…
On Thu, Nov 29, 2018 at 1:05 AM Michael Peick ***@***.***> wrote: A statically linked executable is an executable that does not use any shared libraries. At the moment the weed executable depends on these shared libraries: $ ldd ./weed linux-vdso.so.1 (0x00007f13fd599000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f13fd155000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f13fcd64000) /lib64/ld-linux-x86-64.so.2 (0x00007f13fd374000) What I need is this: $ ldd ./weed not a dynamic executable In go you can easily achieve this with: CGO_ENABLED=0 go build -ldflags "-extldflags -static" — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#775 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABeL79kR85nWAwaFHzEtFp0UijQPlzPXks5uz6N3gaJpZM4Y3fZ4> .