Skip to content

Commit

Permalink
Support cross compilation on MacOs M1 (#768)
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 authored Jul 21, 2023
1 parent 55b6b37 commit f78679d
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 f78679d

Please sign in to comment.