Skip to content

Commit

Permalink
FIPS buid - skip setting Go flags (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitra-mylarappachar authored May 3, 2024
1 parent a73238d commit 9df2d4a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ GOFLAGS_OTHER= CGO_ENABLED=0

FIPS_BUILD ?= 0
ifeq ("$(FIPS_BUILD)","1")
GOFLAGS_OTHER= CGO_ENABLED=1 GOLANG_FIPS=1
GOFLAGS_OTHER=
undefine CGO_ENABLED
endif

# version shouldn't have 'v' prefix for >= 0.13
Expand Down Expand Up @@ -55,10 +56,6 @@ LOCALIZATION_FILES := $(shell find . -name \*.toml | grep -v vendor | grep -v ./

$(NAME): $(shell find . -name \*.go)
GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOFLAGS_OTHER) go build $(TAGS) -ldflags "$(VFLAG)" -o build/$@ .
ifeq ("$(FIPS_BUILD)", "1")
echo "Verifying if the binary is FIPS capable"
go tool nm build/$@ | grep -i strictfips
endif

default: all
.PHONY: default
Expand Down

0 comments on commit 9df2d4a

Please sign in to comment.