From 6d82e14bbc4a757e944ff6f450081eeafbbad0d7 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 12 Jan 2021 08:45:06 +0100 Subject: [PATCH] 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 --- srcpkgs/golangci-lint/template | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/srcpkgs/golangci-lint/template b/srcpkgs/golangci-lint/template index 199642ac150..726a0315e05 100644 --- a/srcpkgs/golangci-lint/template +++ b/srcpkgs/golangci-lint/template @@ -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 }