[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle/master] Use -s when linking golang programs.
commit a2010553088bdb19b0cdd3b022c882b90c7046b3
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Thu Jul 17 14:35:38 2014 +0000
Use -s when linking golang programs.
-s is "omit the symbol table and debug information." It saves a MB or so
on linux64 according to tests at
https://trac.torproject.org/projects/tor/ticket/12387#comment:7.
---
gitian/descriptors/linux/gitian-pluggable-transports.yml | 4 ++--
gitian/descriptors/mac/gitian-pluggable-transports.yml | 4 ++--
gitian/descriptors/windows/gitian-pluggable-transports.yml | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/gitian/descriptors/linux/gitian-pluggable-transports.yml b/gitian/descriptors/linux/gitian-pluggable-transports.yml
index aaaa0f8..f9e2b51 100644
--- a/gitian/descriptors/linux/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/linux/gitian-pluggable-transports.yml
@@ -207,11 +207,11 @@ script: |
cd meek
find -type f | xargs touch --date="$REFERENCE_DATETIME"
cd meek-client
- go build
+ go build -ldflags '-s'
cp -a meek-client $PTDIR
cd ..
cd meek-client-torbrowser
- go build
+ go build -ldflags '-s'
cp -a meek-client-torbrowser $PTDIR
cd ..
mkdir -p $INSTDIR/Docs/meek
diff --git a/gitian/descriptors/mac/gitian-pluggable-transports.yml b/gitian/descriptors/mac/gitian-pluggable-transports.yml
index 51fe9d0..d0322f8 100644
--- a/gitian/descriptors/mac/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/mac/gitian-pluggable-transports.yml
@@ -236,11 +236,11 @@ script: |
cd meek-client
# https://code.google.com/p/go/issues/detail?id=4714#c7
# We need cgo for crypto/x509 support on mac.
- go build
+ go build -ldflags '-s'
cp -a meek-client $PTDIR
cd ..
cd meek-client-torbrowser
- go build
+ go build -ldflags '-s'
cp -a meek-client-torbrowser $PTDIR
cd ..
mkdir -p $TBDIR/Docs/meek
diff --git a/gitian/descriptors/windows/gitian-pluggable-transports.yml b/gitian/descriptors/windows/gitian-pluggable-transports.yml
index fc06cd9..341c6aa 100644
--- a/gitian/descriptors/windows/gitian-pluggable-transports.yml
+++ b/gitian/descriptors/windows/gitian-pluggable-transports.yml
@@ -304,15 +304,15 @@ script: |
cd meek
find -type f | xargs touch --date="$REFERENCE_DATETIME"
cd meek-client
- go build
+ go build -ldflags '-s'
cp -a meek-client.exe $PTDIR
cd ..
cd meek-client-torbrowser
- go build
+ go build -ldflags '-s'
cp -a meek-client-torbrowser.exe $PTDIR
cd ..
cd terminateprocess-buffer
- go build
+ go build -ldflags '-s'
cp -a terminateprocess-buffer.exe $PTDIR
cd ..
mkdir -p $INSTDIR/Docs/meek
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits