Skip to content

Commit f78679d

Browse files
authored
Support cross compilation on MacOs M1 (#768)
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`
1 parent 55b6b37 commit f78679d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ clean:
3737
build: clean
3838
@echo Building otel collector extension
3939
mkdir -p $(BUILD_SPACE)/extensions
40-
GOOS=linux $(GOBUILD) $(LDFLAGS) -o $(BUILD_SPACE)/extensions .
40+
GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) $(LDFLAGS) -o $(BUILD_SPACE)/extensions .
4141

4242
.PHONY: package
4343
package: build

0 commit comments

Comments
 (0)