Skip to content

Commit

Permalink
incus: don't build pie
Browse files Browse the repository at this point in the history
  • Loading branch information
dkwo committed Jan 7, 2024
1 parent 971119f commit 5f7cd39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srcpkgs/incus/template
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ make_dirs="
/var/log/incus 0755 root root"

export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
export GOFLAGS="-buildmode=pie"
# export GOFLAGS="-buildmode=pie"

post_build() {
CGO_LDFLAGS="-static" go install -p "${XBPS_MAKEJOBS}" -v -tags netgo "${go_import_path}/cmd/incus-migrate"
CGO_LDFLAGS="-static" go install -p "${XBPS_MAKEJOBS}" -v -tags agent,netgo "${go_import_path}/cmd/incus-agent"
CGO_ENABLED=0 go install -p "${XBPS_MAKEJOBS}" -v -tags netgo "${go_import_path}/cmd/incus-migrate"
CGO_ENABLED=0 go install -p "${XBPS_MAKEJOBS}" -v -tags agent,netgo "${go_import_path}/cmd/incus-agent"
cd cmd/lxd-to-incus && go install -v ./
}

Expand Down

0 comments on commit 5f7cd39

Please sign in to comment.