Files
termux-packages/packages/gdu/Makefile.patch
termux-pacman-bot 98ce1a89a5 chore(main/gdu): fix arm, i686 and x86_64 build
* Now requires CGO for non AArch64 architectures.
* Fix version number.
* Disable static linking which does not work with liblog.
2024-04-21 16:08:42 +00:00

12 lines
476 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
DATE := $(shell date +'%Y-%m-%d')
GOFLAGS ?= -buildmode=pie -trimpath -mod=readonly -modcacherw -pgo=default.pgo
GOFLAGS_STATIC ?= -trimpath -mod=readonly -modcacherw -pgo=default.pgo
-LDFLAGS := -s -w -extldflags '-static' \
+LDFLAGS := -s -w -extldflags '$(LDFLAGS)' \
-X '$(PACKAGE)/build.Version=$(VERSION)' \
-X '$(PACKAGE)/build.User=$(shell id -u -n)' \
-X '$(PACKAGE)/build.Time=$(shell LC_ALL=en_US.UTF-8 date)'