From 5c7c5d4e18b7ac775aedcb637ec0bc4492b05155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Poho=C5=99elsk=C3=BD?= Date: Tue, 6 Aug 2024 16:22:45 +0200 Subject: [PATCH] Make Git-LFS FIPS compliant --- git-lfs.spec | 4 ++++ 1 file changed, 4 insertions(+) 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