Skip to content

Commit

Permalink
disable cgo in build
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Mar 25, 2024
1 parent 4448dc3 commit 7595c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ release-all: release-lspd release-plugin release-cli

release-lspd:
go get $(PKG)/cmd/lspd
go build -v -trimpath -o lspd -ldflags "-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd
CGO_ENABLED=0 go build -v -trimpath -o lspd -ldflags "-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd

release-plugin:
go get $(PKG)/cmd/lspd_cln_plugin
go build -v -trimpath -o lspd_cln_plugin -ldflags="-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd_cln_plugin
CGO_ENABLED=0 go build -v -trimpath -o lspd_cln_plugin -ldflags="-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd_cln_plugin

release-cli:
go get $(PKG)/cmd/lspd_revenue_cli
go build -v -trimpath -o lspd_revenue_cli -ldflags="-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd_revenue_cli
CGO_ENABLED=0 go build -v -trimpath -o lspd_revenue_cli -ldflags="-s -w -X $(PKG)/build.tag=$(TAG)" $(PKG)/cmd/lspd_revenue_cli

clean:
rm -f lspd
Expand Down

0 comments on commit 7595c7a

Please sign in to comment.