diff options
author | Maciek Borzecki | 2018-04-18 10:14:09 +0200 |
---|---|---|
committer | Maciek Borzecki | 2018-04-18 10:16:20 +0200 |
commit | 5b0a5c57f66df6cd9f5e3eddbbbe6a63825965e8 (patch) | |
tree | 803850e5fdd13b5ff17051160726cb9f5d3924f4 /.SRCINFO | |
parent | bfedfe231208a3daadb127320fbcc2ab6495757c (diff) | |
download | aur-5b0a5c57f66df6cd9f5e3eddbbbe6a63825965e8.tar.gz |
snapd: switch to building with go instead of go-pie
Building statically linked PIE binaries appears to be broken in both Go upstream
and Arch packages. The toolchain ignores CGO_ENABLED=0, does not fail when
building and produces dynamically linked binaries. The output looks like this:
$ CGO_ENABLED=0 go build -o snap-exec github.com/snapcore/snapd/cmd/snap-exec
# github.com/snapcore/snapd/cmd/snap-exec
loadinternal: cannot find runtime/cgo
Since snap-exec *must* be built statically, switch to building with regular Go
toolchain. Tweak static build command, instead of disabling cgo, leave it
enabled and pass -static to ld.
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Diffstat (limited to '.SRCINFO')
-rw-r--r-- | .SRCINFO | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ pkgbase = snapd-git arch = x86_64 license = GPL3 makedepends = git - makedepends = go-pie + makedepends = go makedepends = go-tools makedepends = libseccomp makedepends = libcap |