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

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

Issue 1550453002: Revert of Gold: Patch linker to implement --long-plt flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/long-plt.patch » ('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..99d107056bfbb086cbdb0f72ea4b944e59f9f7c9 100755
--- a/third_party/binutils/build-all.sh
+++ b/third_party/binutils/build-all.sh
@@ -36,29 +36,25 @@
fi
-# Extract the source
-rm -rf binutils-$VERSION
-tar jxf binutils-$VERSION.tar.bz2
+if [ ! -d binutils-$VERSION ]; then
+ # Extract the source
+ tar jxf binutils-$VERSION.tar.bz2
-# Patch the source
-(
- cd binutils-$VERSION
- echo "unlock-thin.patch"
- echo "=================================="
- patch -p1 < ../unlock-thin.patch
- echo "----------------------------------"
- echo
- echo "plugin-dso-fix.patch"
- echo "=================================="
- patch -p1 < ../plugin-dso-fix.patch
- echo "----------------------------------"
- echo
- echo "long-plt.patch"
- echo "=================================="
- patch -p1 < ../long-plt.patch
- echo "----------------------------------"
- echo
-)
+ # Patch the source
+ (
+ cd binutils-$VERSION
+ echo "unlock-thin.patch"
+ echo "=================================="
+ patch -p1 < ../unlock-thin.patch
+ echo "----------------------------------"
+ echo
+ echo "plugin-dso-fix.patch"
+ echo "=================================="
+ patch -p1 < ../plugin-dso-fix.patch
+ echo "----------------------------------"
+ echo
+ )
+fi
for ARCH in i386 amd64; do
if [ ! -d precise-chroot-$ARCH ]; then
« no previous file with comments | « third_party/binutils/README.chromium ('k') | third_party/binutils/long-plt.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698