fix: clear ldflags

This commit is contained in:
madonuko
2026-06-20 15:00:04 +08:00
parent 8b2b59f672
commit 2a48a7c802
+2
View File
@@ -71,6 +71,8 @@ export GOBIN=$(pwd)/gobin
export PATH="${PATH}:${GOBIN}"
# https://github.com/throneproj/Throne/blob/dev/script/build_go.sh
%define currentgoldflags -w -s -X github.com/sagernet/sing-box/constant.Version=%{singbox_version} -X 'internal/godebug.defaultGODEBUG=multipathtcp=0' -checklinkname=0
%define build_ldflags %nil
export GO_LDFLAGS=' '
%define gomodulesmode GO111MODULE=on
export GO_BUILDTAGS="with_clash_api with_gvisor with_quic with_wireguard with_utls with_dhcp with_tailscale badlinkname tfogo_checklinkname0 with_naive_outbound"
go mod tidy