diff --git a/collector/Makefile b/collector/Makefile index efce3b68ee..be65b9c1b7 100644 --- a/collector/Makefile +++ b/collector/Makefile @@ -37,7 +37,7 @@ clean: build: clean @echo Building otel collector extension mkdir -p $(BUILD_SPACE)/extensions - GOOS=linux $(GOBUILD) $(LDFLAGS) -o $(BUILD_SPACE)/extensions . + GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) $(LDFLAGS) -o $(BUILD_SPACE)/extensions . .PHONY: package package: build