build real statics

This commit is contained in:
2023-09-13 20:33:21 +02:00
committed by T.v.Dein
parent 3bbdfdb2aa
commit c01dbd2a90
2 changed files with 7 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ buildlocalctl:
make -C upctl
buildlocal:
go build -ldflags "-X 'github.com/tlinden/ephemerup/cfg.VERSION=$(VERSION)'" -o $(DAEMON)
# go build -ldflags "-X 'github.com/tlinden/ephemerup/cfg.VERSION=$(VERSION)'" -o $(DAEMON)
CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags "-extldflags=-static -s -X 'github.com/tlinden/ephemerup/cfg.VERSION=$(VERSION)'" -o $(DAEMON)
buildimage: clean
docker-compose --verbose build