Skip to content

Commit

Permalink
set teleirc version
Browse files Browse the repository at this point in the history
This requires moving ldflags from goflags to the cmdline because of
golang/go#26849
  • Loading branch information
half-duplex committed Apr 26, 2022
1 parent 92fa701 commit 6b879b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"

go build -o build/ cmd/$pkgname.go
go build -ldflags "-linkmode=external -X main.version=$pkgver-arch" -o build/ cmd/$pkgname.go
}

check() {
Expand Down

0 comments on commit 6b879b1

Please sign in to comment.