Skip to content

Commit

Permalink
Fix issue with GLIBC_2.32 not found
Browse files Browse the repository at this point in the history
Build with `CGO_ENABLED=0`

aws/aws-lambda-go#340
  • Loading branch information
conradhodge committed Jan 7, 2024
1 parent 97858ba commit 7d62578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DIRS=$(shell find lambda/* -type d)
builders: $(DIRS) ## Build all the underlying lambdas

$(DIRS): ## Build each lambda - https://www.wolfe.id.au/2023/08/09/rip-aws-go-lambda-runtime/#why-is-this-hard
cd $@ && GOOS=linux go build -o bootstrap ./...
cd $@ && GOOS=linux CGO_ENABLED=0 go build -o bootstrap ./...

.PHONY: build-cdk
build-cdk: ## Build the CDK stacks
Expand Down

0 comments on commit 7d62578

Please sign in to comment.