From 389d5fb211e272b1952f73a534fe7597b8262033 Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Wed, 18 Sep 2024 14:29:20 +0800 Subject: [PATCH] tailscale: build with less features Omit usually unused features: - ipn.StateStore implementation using AWS SSM - BIRD Internet Routing Daemon client - tstun TAP device for bridging - Kubernetes kubectl configuration utility - Command line completion script generation This shaves off about 500kb from the final executable. --- net/tailscale/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tailscale/Makefile b/net/tailscale/Makefile index 8e1c57e51f6f6e..e92773d918211b 100644 --- a/net/tailscale/Makefile +++ b/net/tailscale/Makefile @@ -28,7 +28,7 @@ GO_PKG:=\ tailscale.com/cmd/tailscaled GO_PKG_LDFLAGS:=-X 'tailscale.com/version.longStamp=$(PKG_VERSION)-$(PKG_RELEASE) (OpenWrt)' GO_PKG_LDFLAGS_X:=tailscale.com/version.shortStamp=$(PKG_VERSION) -GO_PKG_TAGS:=ts_include_cli +GO_PKG_TAGS:=ts_include_cli,ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube,ts_omit_completion include $(INCLUDE_DIR)/package.mk include ../../lang/golang/golang-package.mk