Skip to content

Commit

Permalink
just/build: try disabling gco for static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
loksonarius committed Jan 8, 2021
1 parent 757ae64 commit 1afc6c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build_dir="build"
build_local="${1:-no}"
package_name=${BINARY}
version_flags="-X main.version=${VERSION} -X main.commit=${COMMIT}"
export CGO_ENABLED=0
linker_flags='-s -w -extldflags "-static"'

mkdir -p "${build_dir}"
Expand Down

0 comments on commit 1afc6c4

Please sign in to comment.