From 54ae71c47f58eaf6f5b7c4e3f8b780956e698fbc Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Fri, 27 Oct 2023 12:53:30 -0500 Subject: [PATCH] Implement build flags Add the ability to pass in build flags (e.g., from Dockerfiles) in cases were we need to specify them. For example, this can be useful for enabling FIPS builds. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 81b5cc41b..d41200c51 100644 --- a/Makefile +++ b/Makefile @@ -422,7 +422,7 @@ build: generate fmt vet test-unit ## Build the operator binary. $(GO) build \ -trimpath \ -ldflags=-buildid= \ - -o $(TARGET_OPERATOR) $(MAIN_PKG) + -o $(TARGET_OPERATOR) $(BUILD_FLAGS) $(MAIN_PKG) .PHONY: manager manager: build ## Alias for make build.