Commit dcb7ec0c authored by Sören Tempel's avatar Sören Tempel

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.
parent 3ea72b0a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment