Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1116)

Unified Diff: third_party/binutils/build-all.sh

Issue 1670073003: Link binutils with tcmalloc_minimal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/binutils/README.chromium ('k') | third_party/binutils/build-one.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/binutils/build-all.sh
diff --git a/third_party/binutils/build-all.sh b/third_party/binutils/build-all.sh
index 30f1ee9770e01b2ff234f22affdf644f0838972c..dc6368331478984e366fe49e7721f23cc9332f77 100755
--- a/third_party/binutils/build-all.sh
+++ b/third_party/binutils/build-all.sh
@@ -35,6 +35,9 @@ if ! gpg --verify binutils-$VERSION.tar.bz2.sig; then
exit 1
fi
+if [ ! -d gperftools ]; then
+ git clone --branch gperftools-2.4 https://github.com/gperftools/gperftools
+fi
# Extract the source
rm -rf binutils-$VERSION
@@ -69,9 +72,10 @@ for ARCH in i386 amd64; do
echo ""
echo "Building chroot for $ARCH"
echo "============================="
+ GPERFTOOLS_DEPS=autoconf,automake,libtool
sudo debootstrap \
--arch=$ARCH \
- --include=build-essential,flex,bison \
+ --include=build-essential,flex,bison,$GPERFTOOLS_DEPS \
precise precise-chroot-$ARCH
echo "============================="
fi
@@ -87,6 +91,7 @@ for ARCH in i386 amd64; do
sudo mkdir -p "$BUILDDIR"
sudo cp -a binutils-$VERSION "$BUILDDIR"
sudo cp -a build-one.sh "$BUILDDIR"
+ sudo cp -a gperftools "$BUILDDIR"
# Do the build
PREFIX=
« no previous file with comments | « third_party/binutils/README.chromium ('k') | third_party/binutils/build-one.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698