golangci-lint: update to 1.35.0
Setting LDFLAGS="-fuse-ld=bfd" does no longer work. However all targets except ppc64le* support using the internal linker instead. I found no way to make the ppc64le* build work and left it trying to use the old method.
This commit is contained in:
parent
7b376bd760
commit
cdb80f035b
1 changed files with 13 additions and 6 deletions
|
@ -1,20 +1,27 @@
|
||||||
# Template file for 'golangci-lint'
|
# Template file for 'golangci-lint'
|
||||||
pkgname=golangci-lint
|
pkgname=golangci-lint
|
||||||
version=1.32.2
|
version=1.35.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=github.com/golangci/golangci-lint/cmd/golangci-lint
|
go_import_path=github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
_date="$(date --utc --iso-8601=seconds)"
|
go_ldflags="-X main.version=${version} -X main.date=${SOURCE_DATE_EPOCH} -X main.commit=v${version}"
|
||||||
go_ldflags="-X main.version=${version} -X main.date=${_date} -X main.commit=v${version}"
|
|
||||||
short_desc="Linters Runner for Go"
|
short_desc="Linters Runner for Go"
|
||||||
maintainer="Renato Aguiar <renato@renatoaguiar.net>"
|
maintainer="Renato Aguiar <renato@renatoaguiar.net>"
|
||||||
license="GPL-3.0-only"
|
license="GPL-3.0-only"
|
||||||
homepage="https://github.com/golangci/golangci-lint"
|
homepage="https://github.com/golangci/golangci-lint"
|
||||||
distfiles="https://github.com/golangci/golangci-lint/archive/v${version}.tar.gz"
|
distfiles="https://github.com/golangci/golangci-lint/archive/v${version}.tar.gz"
|
||||||
checksum=ff0e52ec28b5cf1dbc632db301c89dcf4352dd7376d0cc82e36571c609a0b339
|
checksum=71739de1aa88defc6f08c7e5118705069fee51f4fcf303cb9b7a39215ef0c56d
|
||||||
|
|
||||||
# Cross builds fail with -fuse-ld=gold
|
# XXX: LDFLAGS="-fuse-ld=bfd" does no longer work when cross compiling
|
||||||
LDFLAGS="-fuse-ld=bfd"
|
# 'go build runtime/cgo: invalid flag in go:cgo_ldflag: -fuse-ld=bfd'
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
ppc*) # @q66 : ppc64le does not (yet?) support the internal linker
|
||||||
|
LDFLAGS="-fuse-ld=bfd"
|
||||||
|
;;
|
||||||
|
*) # other targets can use go's internal linker
|
||||||
|
go_ldflags=" -linkmode internal"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue