[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle/hardened-builds] Build gn in linux-webrtc.
commit 45f6ab2698d447441095e8d388fba3a3aa855f57
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Fri Sep 23 13:14:07 2016 -0700
Build gn in linux-webrtc.
There is a prebuilt gn binary for linux64, but none for linux32, and
anyway we prefer to build from source for reproducibility reasons.
---
gitian/descriptors/linux/gitian-webrtc.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gitian/descriptors/linux/gitian-webrtc.yml b/gitian/descriptors/linux/gitian-webrtc.yml
index f18da52..85da679 100644
--- a/gitian/descriptors/linux/gitian-webrtc.yml
+++ b/gitian/descriptors/linux/gitian-webrtc.yml
@@ -63,6 +63,8 @@ script: |
ln -sf hardened-cc c++
cd ~/build
export PATH=$INSTDIR/gcc/bin:$INSTDIR/binutils/bin:$PATH
+ # GN needs libatomic.so.1 here.
+ export LD_LIBRARY_PATH=$INSTDIR/gcc/lib
ARCH=""
if [ $GBUILD_BITS == "64" ];
then
@@ -80,6 +82,15 @@ script: |
# Building webrtc
tar xaf webrtc.tar.gz
cd webrtc/src
+
+ # First, build a copy of GN, rather than use the prebuilt copy in buildtools/linux64.
+ cd tools/gn
+ # __STDC_FORMAT_MACROS is needed for a definition of PRIxPTR from inttypes.h.
+ CXXFLAGS=-D__STDC_FORMAT_MACROS=1 LDFLAGS=-latomic ./bootstrap/bootstrap.py --no-rebuild --no-clean
+ cd ../..
+ # This is where bootstrap.py stashes the built gn.
+ GN="$PWD/out_bootstrap/gn"
+
export GYP_CROSSCOMPILE=1
export GYP_DEFINES="OS=linux target_arch=$(if [ $GBUILD_BITS = 32 ]; then echo ia32; else echo x64; fi)"
# Do not use bundled utilities.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits