You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2017/04/26 00:51:21 UTC

[10/12] incubator-mynewt-site git commit: Add -ldflags -s when building newtmgr

Add -ldflags -s when building newtmgr


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/e02e2985
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/e02e2985
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/e02e2985

Branch: refs/heads/develop
Commit: e02e29852acc0c7fd4d8d834bd8d858b17d50bb1
Parents: 1db5d8d
Author: cwanda <wa...@happycity.com>
Authored: Tue Apr 25 14:22:32 2017 -0700
Committer: cwanda <wa...@happycity.com>
Committed: Tue Apr 25 14:22:32 2017 -0700

----------------------------------------------------------------------
 docs/faq/go_env.md | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/e02e2985/docs/faq/go_env.md
----------------------------------------------------------------------
diff --git a/docs/faq/go_env.md b/docs/faq/go_env.md
index a757420..4b4a880 100644
--- a/docs/faq/go_env.md
+++ b/docs/faq/go_env.md
@@ -142,9 +142,11 @@ The newtmgr Go package is **mynewt.apache.org/newtmgr/newtmgr**. It is stored in
 
 Download the newtmgr package and install the tool:
 
+**Note:** `-ldflags -s` must be passed to the `go get` command.
+
 ```no-highlight
 $cd $GOPATH
-$go get mynewt.apache.org/newtmgr/newtmgr
+$go get -ldflags -s mynewt.apache.org/newtmgr/newtmgr
 $cd $GOPATH/src/mynewt.apache.org/newtmgr
 $ls
 DISCLAIMER	NOTICE		newtmgr
@@ -196,6 +198,8 @@ $git pull
 <br>
 Build and install the tool. The updated binary will be installed in the **$GOPATH/bin** directory: 
 
+(**Note:** `-ldflags -s` must be passed to the `go install` command if you are rebuilding newtmgr)
+
 ```no-highlight
 $go install
 ```