summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhus Lu <phus.lu@citrix.com>2016-09-07 11:16:49 +0100
committerPhus Lu <phus.lu@citrix.com>2016-09-07 11:20:09 +0100
commite05327710842b94ead237b50c8d4dfde1910b148 (patch)
tree0c4f2cda87558c109fd55b2af6be1885d73e5db7
parent63ade322760289ac4b51587cd233b1a8d881d4c7 (diff)
downloadvyos-xe-guest-utilities-e05327710842b94ead237b50c8d4dfde1910b148.tar.gz
vyos-xe-guest-utilities-e05327710842b94ead237b50c8d4dfde1910b148.zip
CA-220438: Trim symbols to thin xe-guest-utilities
Signed-off-by: Phus Lu <phus.lu@citrix.com>
-rw-r--r--mk/Makefile.deb2
-rw-r--r--mk/Makefile.rpm2
-rw-r--r--mk/Makefile.tgz2
3 files changed, 3 insertions, 3 deletions
diff --git a/mk/Makefile.deb b/mk/Makefile.deb
index bd464f2..c435c31 100644
--- a/mk/Makefile.deb
+++ b/mk/Makefile.deb
@@ -31,7 +31,7 @@ DEBPOOLDIR := debian/pool/main/x/xe-guest-utilities
GOTARBALL = /distfiles/golang/go1.4.2.linux-386.tar.gz
GOROOT = $(MY_OBJ_DIR)/go
GOBIN = GOROOT=$(GOROOT) $(GOROOT)/bin/go
-GOFLAGS = -v
+GOFLAGS = -v -ldflags="-s -w"
GOBUILDDIR = $(MY_OBJ_DIR)/gobuild
GO_SOURCE_REPO = $(call git_loc,xe-guest-utilities)
diff --git a/mk/Makefile.rpm b/mk/Makefile.rpm
index de1fde2..954fda6 100644
--- a/mk/Makefile.rpm
+++ b/mk/Makefile.rpm
@@ -27,7 +27,7 @@ SRPM= xe-guest-utilities-$(VERSION)-$(RELEASE).src.rpm
GOTARBALL = /distfiles/golang/go1.4.2.linux-386.tar.gz
GOROOT = $(MY_OBJ_DIR)/go
GOBIN = GOROOT=$(GOROOT) $(GOROOT)/bin/go
-GOFLAGS = -a -x
+GOFLAGS = -a -x -ldflags="-s -w"
GOBUILDDIR = $(MY_OBJ_DIR)/gobuild
GO_SOURCE_REPO = $(call git_loc,xe-guest-utilities)
diff --git a/mk/Makefile.tgz b/mk/Makefile.tgz
index 6a13119..db2d327 100644
--- a/mk/Makefile.tgz
+++ b/mk/Makefile.tgz
@@ -30,7 +30,7 @@ DESTDIR := $(MY_OBJ_DIR)/$(PACKAGE)/
GOTARBALL = /distfiles/golang/go1.4.2.linux-386.tar.gz
GOROOT = $(MY_OBJ_DIR)/go
GOBIN = GOROOT=$(GOROOT) $(GOROOT)/bin/go
-GOFLAGS = -v
+GOFLAGS = -v -ldflags="-s -w"
GOBUILDDIR = $(MY_OBJ_DIR)/gobuild
GO_SOURCE_REPO = $(call git_loc,xe-guest-utilities)