From 52dbbdcdb214ca2aa41ef779fb964a10a5664df8 Mon Sep 17 00:00:00 2001 From: ppom <> Date: Fri, 5 Jan 2024 12:00:00 +0100 Subject: [PATCH] make: strip binaries --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 458d596..d4240a4 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ clean: rm -f reaction ip46tables reaction.deb deb reaction.minisig ip46tables.minisig reaction.deb.minisig ip46tables: ip46tables.d/ip46tables.c - gcc -static ip46tables.d/ip46tables.c -o ip46tables + gcc -s -static ip46tables.d/ip46tables.c -o ip46tables reaction: app/* reaction.go go.mod go.sum - CGO_ENABLED=0 go build -buildvcs=false -ldflags "-X main.version=`git tag --sort=v:refname | tail -n1` -X main.commit=`git rev-parse --short HEAD`" + CGO_ENABLED=0 go build -buildvcs=false -ldflags "-s -X main.version=`git tag --sort=v:refname | tail -n1` -X main.commit=`git rev-parse --short HEAD`" reaction.deb: reaction ip46tables chmod +x reaction ip46tables