Skip to content

Commit

Permalink
Support cross compilation on MacOs M1
Browse files Browse the repository at this point in the history
This is required in order to get an amd64 on a standard M1 i installation.  
Trying without the proposed changes will result in a arm64 binary called `*layer*amd64*.zip`
  • Loading branch information
erikologic committed Jun 20, 2023
1 parent c6a7138 commit 643005c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 643005c

Please sign in to comment.