make: strip binaries

This commit is contained in:
ppom 2024-01-05 12:00:00 +01:00
parent b441e91f84
commit 52dbbdcdb2

View File

@ -4,10 +4,10 @@ clean:
rm -f reaction ip46tables reaction.deb deb reaction.minisig ip46tables.minisig reaction.deb.minisig rm -f reaction ip46tables reaction.deb deb reaction.minisig ip46tables.minisig reaction.deb.minisig
ip46tables: ip46tables.d/ip46tables.c 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 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 reaction.deb: reaction ip46tables
chmod +x reaction ip46tables chmod +x reaction ip46tables