Skip to content

Commit

Permalink
Bug 2107462: Update CGO_ENABLED=1
Browse files Browse the repository at this point in the history
CGO_ENABLED=1 is enabled to enable FIPS compliance through the C code
that makes Cryptographic calls on Linux.

Added to Makefile

Link to [cluster-ingress-operator PR 833](openshift/cluster-ingress-operator#833)

Signed-off-by: Paul Bastide <pbastide@redhat.com>
  • Loading branch information
prb112 committed Oct 11, 2022
1 parent 1e6cd69 commit 64554ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GO_LD_EXTRAFLAGS ?=
GO_LDFLAGS ?=-ldflags "-s -w $(call version-ldflags,$(PACKAGE)/pkg/version) $(GO_LD_EXTRAFLAGS)"

GO=GO111MODULE=on GOFLAGS=-mod=vendor go
GO_BUILD_RECIPE=CGO_ENABLED=0 $(GO) build -o $(BIN) $(GO_GCFLAGS) $(GO_LDFLAGS) $(MAIN_PACKAGE)
GO_BUILD_RECIPE=CGO_ENABLED=1 $(GO) build -o $(BIN) $(GO_GCFLAGS) $(GO_LDFLAGS) $(MAIN_PACKAGE)

all: build

Expand All @@ -37,7 +37,7 @@ images/router/*/Dockerfile.rhel: images/router/base/Dockerfile.rhel
imagebuilder -t registry.svc.ci.openshift.org/ocp/4.0:`basename $(@D)`-router -f images/router/`basename $(@D)`/Dockerfile.rhel .

check:
$(GO) test -race ./...
CGO_ENABLED=1 $(GO) test -race ./...

.PHONY: verify
verify:
Expand Down

0 comments on commit 64554ed

Please sign in to comment.