From a21084af5844e7c89f944285418eacfaffa9ea18 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 15 Mar 2024 14:35:27 +0900 Subject: [PATCH] Add precompiled .a files Change-Id: I7620d9459e04578e619825b995fc25baa7e72861 --- packaging/golang.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/golang.spec b/packaging/golang.spec index 978dc27..65a8c3b 100644 --- a/packaging/golang.spec +++ b/packaging/golang.spec @@ -270,6 +270,10 @@ find $RPM_BUILD_ROOT%{goroot}/src -exec touch -r $RPM_BUILD_ROOT%{goroot}/VERSIO # and level out all the built archives touch $RPM_BUILD_ROOT%{goroot}/pkg find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \; + +export GOROOT=$RPM_BUILD_ROOT%{goroot} +GODEBUG=installgoroot=all $GOROOT/bin/go install std + # generate the spec file ownership of this source tree and packages cwd=$(pwd) src_list=$cwd/go-src.list -- 2.7.4