Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Makefile build cmd to create static binaries #297

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Oct 10, 2020

The previous build command produces dynamic executables
instead of the intended (but not well noted in the Makefile)
static executables. This commit includes changes noted in
upstream golang/go issues which appear to work as intended
for others.

I also include doc comments and reference links describing
the use of the updated build options list and some problems
that I encountered during testing of linkmode=external.

The previous build command produces dynamic executables
instead of the intended (but not well noted in the Makefile)
static executables. This commit includes changes noted in
upstream `golang/go` issues which appear to work as intended
for others.

I also include doc comments and reference links describing
the use of the updated build options list and some problems
that I encountered during testing of `linkmode=external`.

- refs GH-294
- refs golang/go 38789
- refs golang/go 26492
@atc0005 atc0005 added bug Something isn't working builds labels Oct 10, 2020
@atc0005 atc0005 added this to the Next Release milestone Oct 10, 2020
@atc0005 atc0005 self-assigned this Oct 10, 2020
@atc0005 atc0005 merged commit 626e879 into master Oct 10, 2020
Update static binary generation in Go project Makefiles automation moved this from In-Progress to Done Oct 10, 2020
@atc0005 atc0005 deleted the i294-explicitly-specify-build-options-to-generate-static-binary branch October 10, 2020 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working builds
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Makefile build options do not generate static binaries
1 participant