From 783083ac9846c5ddfc698fd9a9aa7e524d712cfa Mon Sep 17 00:00:00 2001 From: Roke Jung Date: Thu, 7 Sep 2023 18:11:49 -0400 Subject: [PATCH] enable CGO_ENABLED for building FIPS compliant images Signed-off-by: Roke Jung --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 03554b7417..36d994c1b2 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ PROMTOOL=GO111MODULE=on GOFLAGS=-mod=vendor go run github.com/prometheus/prometh GO_GCFLAGS ?= -gcflags=all='-N -l' GO=GO111MODULE=on GOFLAGS=-mod=vendor go -GO_BUILD_RECIPE=CGO_ENABLED=0 $(GO) build $(GO_GCFLAGS) -GO_E2E_RECIPE=CGO_ENABLED=0 $(GO) test $(GO_GCFLAGS) -tags e2e -c +GO_BUILD_RECIPE=CGO_ENABLED=1 $(GO) build $(GO_GCFLAGS) +GO_E2E_RECIPE=CGO_ENABLED=1 $(GO) test $(GO_GCFLAGS) -tags e2e -c CI_TESTS_RUN ?= ""