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:
Sören Tempel 2019-03-17 17:03:59 +01:00
parent 3ea72b0a9e
commit dcb7ec0c6b
1 changed files with 1 additions and 0 deletions

View File

@ -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