0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/gdu/Makefile.patch
Biswapriyo Nath 63d1ec411f 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 23:46:40 +08: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)'