Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIPS buid - skip setting Go flags #193

Merged
merged 1 commit into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading