diff --git a/git-lfs.spec b/git-lfs.spec index e5b7c2f..b1fe326 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -99,6 +99,10 @@ sed -i -e 's!^BINPATH=.\+!BINPATH="%{gobuilddir}/bin"!g' t/testenv.sh export GOPATH=%{gobuilddir}:%{gopath} export GO111MODULE=off +# Enable FIPS support at build time by enabling CGO and enforcing strict FIPS runtime +export CGO_ENABLED=1 +export GOEXPERIMENT=strictfipsruntime + # Build manpages first (some embedding in the executable is done.) make man GIT_LFS_SHA=unused VERSION=unused PREFIX=unused pushd docs