mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-27 01:34:23 +00:00
abuild.conf: enable PIE binaries by default for go as well
From `go help environment`: GOFLAGS A space-separated list of -flag=value settings to apply to go commands by default, when the given flag is known by the current command. Flags listed on the command-line are applied after this list and therefore override it. And from `go help build`: -buildmode mode build mode to use. See 'go help buildmode' for more. Setting this environment variable in /etc/abuild.conf allows us to build all go binaries on the builders as PIE without needing to patch the go compiler itself.
This commit is contained in:
parent
3ea72b0a9e
commit
dcb7ec0c6b
@ -2,6 +2,7 @@ export CFLAGS="-Os -fomit-frame-pointer"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export CPPFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-Wl,--as-needed"
|
||||
export GOFLAGS="-buildmode=pie"
|
||||
|
||||
export JOBS=2
|
||||
export MAKEFLAGS=-j$JOBS
|
||||
|
Loading…
Reference in New Issue
Block a user