added build script to build fully statically linked binary using musl

This commit is contained in:
Philipp Häfelfinger 2019-04-08 23:47:50 +02:00
parent 2635e474f6
commit 1ca311895c

2
build/build-musl.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
CC=/usr/bin/musl-gcc go build --ldflags '-linkmode external -extldflags "-static"' ./cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go