Lindenii Project Forge
Commit info | |
---|---|
ID | 78abaefa0d73372bccb6ef0b1fda15dcbb9a98d8 |
Author | Runxi Yu<me@runxiyu.org> |
Author date | Fri, 07 Mar 2025 08:25:04 +0800 |
Committer | Runxi Yu<me@runxiyu.org> |
Committer date | Fri, 07 Mar 2025 08:25:04 +0800 |
Actions | Get patch |
Makefile: Don't need to statically link Go files
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-FileContributor: Runxi Yu <https://runxiyu.org> .PHONY: clean version.go 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: version.go: printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --always --dirty) > $@ clean: $(RM) forge version.go vendor