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

auto populate LDFLAGS #17

Closed
sozercan opened this issue Sep 22, 2023 · 2 comments
Closed

auto populate LDFLAGS #17

sozercan opened this issue Sep 22, 2023 · 2 comments

Comments

@sozercan
Copy link
Member

sozercan commented Sep 22, 2023

seems like we might need to define LDFLAGS for each build (since we may not rely on existing make targets because of vendoring), can we do this in a centralized way

relevant to #7

@cpuguy83
Copy link
Member

For go I think we can copy modules and not have to deal with vendoring. Example: https://gist.github.com/cpuguy83/1b75a3a88e5fa9fdf5caddcaa91e90f4

You can also use the GOFLAGS env var to set, e.g. GOFLAGS="-ldflags='<flags>'"

@cpuguy83
Copy link
Member

This should be handled because you can either set it with GOFLAGS or pre-fetch go modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants