Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,10 @@ $(BUILDDIR)/tsh:

.PHONY: $(BUILDDIR)/tbot
# tbot is CGO-less by default except on Windows because lib/client/terminal/ wants CGO on this OS
$(BUILDDIR)/tbot: TBOT_CGO_FLAGS ?= $(if $(filter windows,$(OS)),$(CGOFLAG))
# We force cgo to be disabled, else the compiler might decide to enable it.
$(BUILDDIR)/tbot: TBOT_CGO_FLAGS ?= $(if $(filter windows,$(OS)),$(CGOFLAG),CGO_ENABLED=0)
# Build mode pie requires CGO
$(BUILDDIR)/tbot: BUILDFLAGS_TBOT += $(if $(TBOT_CGO_FLAGS), -buildmode=pie)
$(BUILDDIR)/tbot: BUILDFLAGS_TBOT += $(if $(findstring CGO_ENABLED=1,$(TBOT_CGO_FLAGS)), -buildmode=pie)
$(BUILDDIR)/tbot:
GOOS=$(OS) GOARCH=$(ARCH) $(TBOT_CGO_FLAGS) go build -tags "$(FIPS_TAG)" -o $(BUILDDIR)/tbot $(BUILDFLAGS_TBOT) $(TOOLS_LDFLAGS) ./tool/tbot

Expand Down
2 changes: 1 addition & 1 deletion integrations/teleport-spacelift-runner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ include ../../build.assets/images.mk
.PHONY: docker-build
docker-build:
docker buildx build --platform="$(OS)/$(ARCH)" \
--build-arg BUILDBOX=$(BUILDBOX_CENTOS7) \
--build-arg BUILDBOX=$(BUILDBOX_CENTOS7_NOARCH) \
--build-arg BASE_IMAGE=$(BASE_IMAGE) \
--load \
-f ./Dockerfile \
Expand Down