aports/community/gopass/enable-cgo.patch
2024-03-11 18:10:54 +01:00

17 lines
799 B
Diff

Otherwise, doesn't build with -buildmode=pie.
See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
diff -upr gopass-1.15.11.orig/Makefile gopass-1.15.11/Makefile
--- gopass-1.15.11.orig/Makefile 2024-03-11 11:54:50.007657507 +0100
+++ gopass-1.15.11/Makefile 2024-03-11 11:54:59.297684593 +0100
@@ -17,7 +17,7 @@ TESTFLAGS ?=
PWD := $(shell pwd)
PREFIX ?= $(GOPATH)
BINDIR ?= $(PREFIX)/bin
-GO ?= GO111MODULE=on CGO_ENABLED=0 go
+GO ?= GO111MODULE=on go
GOOS ?= $(shell $(GO) version | cut -d' ' -f4 | cut -d'/' -f1)
GOARCH ?= $(shell $(GO) version | cut -d' ' -f4 | cut -d'/' -f2)
TAGS ?= netgo