Skip to content

Commit

Permalink
Use statically linked binaries
Browse files Browse the repository at this point in the history
Add LDFLAG to compile statically linked binaries.
  • Loading branch information
HeavyWombat committed Sep 9, 2018
1 parent 1647091 commit 8ff3974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/compile-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ while read -r OS ARCH; do
TARGET_FILE="${TARGET_FILE}.exe"
fi

(cd "$BASEDIR" && GOOS="$OS" GOARCH="$ARCH" go build -ldflags="-s -w" -o "$TARGET_FILE" cmd/dyff/main.go)
(cd "$BASEDIR" && GOOS="$OS" GOARCH="$ARCH" go build -ldflags='-s -w -extldflags "-static"' -o "$TARGET_FILE" cmd/dyff/main.go)

done <<EOL
darwin 386
Expand Down

0 comments on commit 8ff3974

Please sign in to comment.