golangci-lint: remove weird linkmode thing

i don't see why this is necessary, the cc command being called
does not imply anything other than bfd being used in the first
place anyway

and explicit -fuse-ld=bfd fails just the same on ppc64le
This commit is contained in:
q66 2021-01-12 08:45:06 +01:00
parent 6006e664f1
commit 6d82e14bbc

View file

@ -12,17 +12,6 @@ homepage="https://github.com/golangci/golangci-lint"
distfiles="https://github.com/golangci/golangci-lint/archive/v${version}.tar.gz"
checksum=71739de1aa88defc6f08c7e5118705069fee51f4fcf303cb9b7a39215ef0c56d
# XXX: LDFLAGS="-fuse-ld=bfd" does no longer work when cross compiling
# '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() {
vdoc README.md
}