Skip to content

Commit

Permalink
fix(main/litespeedtest): Enable CGO for non AArch64 architectures
Browse files Browse the repository at this point in the history
Fixes the following error
android/amd64 requires external (cgo) linking, but cgo is not enabled
  • Loading branch information
Biswa96 committed Jul 29, 2024
1 parent 23cbd0e commit 4e4d9e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions packages/litespeedtest/Makefile.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
--- ../LiteSpeedTest-0.12.0/Makefile 2022-10-16 08:46:16.000000000 +0000
+++ ./Makefile 2022-10-17 18:59:57.111027624 +0000
@@ -1,6 +1,5 @@
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
NAME=lite
BINDIR=bin
-VERSION=$(shell git describe --tags || echo "unknown version")
BUILDTIME=$(shell date -u)
GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/xxf098/LiteSpeedTest/constant.Version=$(VERSION)" \
-GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/xxf098/LiteSpeedTest/constant.Version=$(VERSION)" \
+GOBUILD=CGO_ENABLED=1 go build -trimpath -ldflags '-X "github.com/xxf098/LiteSpeedTest/constant.Version=$(VERSION)" \
-X "github.com/xxf098/LiteSpeedTest/constant.BuildTime=$(BUILDTIME)" \
-w -s -buildid='

@@ -27,10 +26,8 @@
windows-arm64 \
windows-arm32v7
Expand Down
2 changes: 1 addition & 1 deletion packages/litespeedtest/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A simple tool for batch test ss/ssr/v2ray/trojan servers
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.15.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/xxf098/LiteSpeedTest/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=93da1b6ca132a779b4ce754802699c6ecc6817739603e505c8f7c12cf97c69c9
TERMUX_PKG_DEPENDS="resolv-conf"
Expand Down

0 comments on commit 4e4d9e8

Please sign in to comment.