diff --git a/k3s-plugins.spec b/k3s-plugins.spec index 068355596814f08af7b5d88899a91608c1cd7b9f..00d10e11ad7344e688ab55bb13a23016bed197ee 100644 --- a/k3s-plugins.spec +++ b/k3s-plugins.spec @@ -2,7 +2,7 @@ Name: k3s-plugins Version: 1.1.1 -Release: 3 +Release: 4 Summary: some standard networking plugins, maintained by the CNI team URL : https://github.com/rancher/plugins Source0: https://github.com/rancher/plugins/archive/refs/tags/v%{version}-%{tagname}.tar.gz @@ -76,7 +76,7 @@ popd OutputDir=`pwd`/.gopath/cni GOPATH=`pwd`/.gopath pushd .gopath/src/github.com/containernetworking/plugins -GO111MODULE=off GOPATH=$GOPATH CGO_ENABLED=0 "${GO}" build -tags "$TAGS" -buildmode=pie -ldflags "$VERSIONFLAGS $LDFLAGS -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now ' " -o $OutputDir +GO111MODULE=off GOPATH=$GOPATH CGO_ENABLED=1 "${GO}" build -tags "$TAGS" -buildmode=pie -ldflags "$VERSIONFLAGS $LDFLAGS -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now ' " -o $OutputDir popd %install @@ -87,6 +87,9 @@ install -p -m 755 ./.gopath/cni $RPM_BUILD_ROOT/%{_datadir}/k3s/ %{_datadir}/k3s/ %changelog +* Sun Jun 29 2025 yyjeqhc - 1.1.1-4 +- enable cgo for buildmode=pie and linkmode=external + * Tue Jul 11 2023 huajingyun - 1.1.1-3 - Add loong64 support