aports/community/ctop/enable-cgo.patch
2024-03-11 04:37:14 +01:00

17 lines
481 B
Diff

Required for -buildmode=pie.
See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
diff -upr ctop-0.7.7.orig/Makefile ctop-0.7.7/Makefile
--- ctop-0.7.7.orig/Makefile 2024-03-11 11:53:50.004149227 +0100
+++ ctop-0.7.7/Makefile 2024-03-11 11:53:56.324167654 +0100
@@ -8,7 +8,7 @@ clean:
build:
go mod download
- CGO_ENABLED=0 go build -tags release -ldflags $(LD_FLAGS) -o ctop
+ go build -tags release -ldflags $(LD_FLAGS) -o ctop
build-all:
mkdir -p _build