Files
external-dns/scripts/build
T
janeczku d6c2e1cca2 Build static binary with Go internal linker
Static linking with gcc may cause segfaults at runtime on some systems
(see https://github.com/golang/go/issues/13470)
2017-03-11 15:25:38 +01:00

10 lines
166 B
Python
Executable File

#!/bin/bash
set -e
source $(dirname $0)/version
cd $(dirname $0)/..
mkdir -p bin
CGO_ENABLED=0 go build -ldflags "-X main.Version=$VERSION -s" -o bin/external-dns