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

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

Issue 2961943002: Remove LTO-related hacks from binutils build script. (Closed)
Patch Set: Created 3 years, 6 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/build-all.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/binutils/build-one.sh
diff --git a/third_party/binutils/build-one.sh b/third_party/binutils/build-one.sh
index ccb58be35e7a8d46ca5a3ff7480be4255f7b3c27..9eb81e8856c00ba9ac51ea07e2eaa693f8098a3c 100755
--- a/third_party/binutils/build-one.sh
+++ b/third_party/binutils/build-one.sh
@@ -15,42 +15,6 @@ if [ -z "$1" ]; then
fi
cd "$1"
-
-# First, we need to build libtcmalloc_minimal
-
-cd ../gperftools/
-./autogen.sh
-./configure \
- --disable-cpu-profiler \
- --disable-heap-checker \
- --disable-heap-profiler \
- --disable-static \
- --enable-minimal
-
-echo
-echo "= gperftools src/config.h =========================================="
-cat src/config.h
-echo "===================================================================="
-echo
-
-make -j8
-
-cd "$1"
-
-# Ask the dynamic loader to load libstdc++ from the LLVM build directory if
-# available. That copy of libstdc++ is required by the gold plugin in the same
-# directory. Do the same for libtcmalloc_minimal, that is stored in ../lib.
-# The dynamic loader expects the relative path to start with $ORIGIN,
-# but because of escaping issues
-# (https://sourceware.org/ml/binutils/2009-05/msg00252.html)
-# we embed a dummy path with $ replaced with z and fix it up later.
-
-readonly LIBSTDCPP_RPATH="zORIGIN/../../../../llvm-build/Release+Asserts/lib"
-readonly LIBTCMALLOC_RPATH="zORIGIN/../lib"
-export LDFLAGS="-Wl,-rpath,$LIBSTDCPP_RPATH:$LIBTCMALLOC_RPATH \
- -L$(pwd)/../gperftools/.libs/"
-export LIBS='-ltcmalloc_minimal'
-
./configure \
--enable-deterministic-archives \
--enable-gold=default \
@@ -66,21 +30,3 @@ cat binutils/config.h
echo "===================================================================="
echo
make install
-
-# Copy libtcmalloc_minimal library and symlinks to the install lib dir.
-cp -a ../gperftools/.libs/libtcmalloc_minimal.so* /build/output/*/lib/
-
-# Save the list of binaries. The sed -i command will leave .orig files behind.
-# We don't want them to appear in the for loop below.
-bins="$(echo /build/output/*/bin/*)"
-
-# Fix up zORIGIN -> $ORIGIN.
-sed -i.orig 's,zORIGIN,$ORIGIN,g' $bins
-
-# Verify that we changed only two bytes per executable.
-for bin in $bins; do
- test "`cmp -l $bin.orig $bin | wc -l`" = 2 || \
- (echo "$bin: verification failed" && exit 1)
-done
-
-rm /build/output/*/bin/*.orig
« no previous file with comments | « third_party/binutils/build-all.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698