Skip to content

Commit

Permalink
Statically compile gdn to address #233
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPaquette committed Sep 6, 2022
1 parent 6719145 commit fd1d688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/gdn-linux-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ git config --global --add safe.directory '*'
# If you want to fly execute this, you will have to pass DEV_MODE=true
if [ -z "$DEV_MODE" ]; then
gdn_version=$(cd gr-release-develop/src/guardian && git rev-parse HEAD)
gdn_build_ldflags="-X main.version=${gdn_version}"
gdn_build_ldflags="-X main.version=${gdn_version} -extldflags=-static"
fi

# shellcheck source=../helpers/device-control
Expand Down Expand Up @@ -92,7 +92,7 @@ function build() {
cd gr-release-develop/src/guardian

# must be built with 'daemon' flag because of docker packages :|
go build \
CGO_ENABLED=0 go build \
-mod vendor \
-tags daemon \
-o "${basedir}/binary/gdn" \
Expand Down

0 comments on commit fd1d688

Please sign in to comment.