mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
make: set CGO_ENABLED=0
Make loop and loopd binaries static, more portable.
This commit is contained in:
parent
6b7158201a
commit
b0051382cf
2 changed files with 5 additions and 4 deletions
|
|
@ -98,8 +98,9 @@ for i in $SYS; do
|
|||
cd $PACKAGE-$i-$TAG
|
||||
|
||||
echo "Building:" $OS $ARCH $ARM
|
||||
env GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -ldflags "$COMMITFLAGS" github.com/lightninglabs/loop/cmd/loop
|
||||
env GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -ldflags "$COMMITFLAGS" github.com/lightninglabs/loop/cmd/loopd
|
||||
for bin in loop loopd; do
|
||||
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM go build -v -ldflags "$COMMITFLAGS" "github.com/lightninglabs/loop/cmd/$bin"
|
||||
done
|
||||
cd ..
|
||||
|
||||
if [[ $OS = "windows" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue