[build] Add "-s" to ldflags
@@ -12,16 +12,16 @@ set(PROTO_DIR ${CMAKE_CURRENT_LIST_DIR}/aergo-protobuf/proto)
add_custom_target(build ALL DEPENDS vendor libtool aergocli aergosvr aergoluac brick)
-add_custom_target(aergocli GOBIN=${BIN_DIR} go install -ldflags \"-X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ./cmd/aergocli/...
+add_custom_target(aergocli GOBIN=${BIN_DIR} go install -ldflags \"-s -X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ./cmd/aergocli/...
DEPENDS vendor libtool)
-add_custom_target(aergosvr GOBIN=${BIN_DIR} go install ./cmd/aergosvr/...
+add_custom_target(aergosvr GOBIN=${BIN_DIR} go install -ldflags \"-s\" ./cmd/aergosvr/...
DEPENDS vendor libtool)
-add_custom_target(aergoluac GOBIN=${BIN_DIR} go install ./cmd/aergoluac/...
+add_custom_target(aergoluac GOBIN=${BIN_DIR} go install -ldflags \"-s\" ./cmd/aergoluac/...
DEPENDS vendor libtool)
-add_custom_target(brick GOBIN=${BIN_DIR} go install -ldflags \"-X github.com/aergoio/aergo/cmd/brick/context.GitHash=`git describe --tags`\" ./cmd/brick/...
+add_custom_target(brick GOBIN=${BIN_DIR} go install -ldflags \"-s -X github.com/aergoio/aergo/cmd/brick/context.GitHash=`git describe --tags`\" ./cmd/brick/...
DEPENDS vendor libtool)
add_custom_command(OUTPUT vendor
