Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am applying this patch during the Arch build (or will be in the next update) and thought it might be useful for you upstream.
The main feature is that the build will respect external LDFLAGS; this way we can eg. build a position independent executable easier.
It also adds flags by default (they can of course be turned off) to strip the absolute path from debug information so that only the relative path within the repo remains; this way your home directory doesn't end up in the final binary and builds are more reproducible.
I can of course change the defaults to whatever you prefer if you think this patch is useful since they can always be set at build time by changing the appropriate variables.