From 78abaefa0d73372bccb6ef0b1fda15dcbb9a98d8 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 07 Mar 2025 08:25:04 +0800 Subject: [PATCH] Makefile: Don't need to statically link Go files --- Makefile | 2 +- diff --git a/Makefile b/Makefile index b452eb2d517fcafa6754a65c2cfe081949f414fa..43e344c1f4cdb4c25d0fa1682160d601067fc39e 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE forge: $(filter-out forge,$(wildcard *)) version.go git_hooks_client/*.c git_hooks_client/git_hooks_client go mod vendor - CGO_ENABLED=0 go build -o $@ -ldflags '-extldflags "-f no-PIC -static"' -tags 'osusergo netgo static_build' . + go build . git_hooks_client/git_hooks_client: -- 2.48.1