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

Side by Side Diff: build/install-build-deps.sh

Issue 6502009: Build/install gold instead of all of binutils. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to install everything needed to build chromium (well, ideally, anyway) 7 # Script to install everything needed to build chromium (well, ideally, anyway)
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 test -f $BINUTILS.tar.bz2 || wget $BINUTILS_URL 53 test -f $BINUTILS.tar.bz2 || wget $BINUTILS_URL
54 if test "`sha1sum $BINUTILS.tar.bz2|cut -d' ' -f1`" != "$BINUTILS_SHA1" 54 if test "`sha1sum $BINUTILS.tar.bz2|cut -d' ' -f1`" != "$BINUTILS_SHA1"
55 then 55 then
56 echo Bad sha1sum for $BINUTILS.tar.bz2 56 echo Bad sha1sum for $BINUTILS.tar.bz2
57 exit 1 57 exit 1
58 fi 58 fi
59 59
60 tar -xjvf $BINUTILS.tar.bz2 60 tar -xjvf $BINUTILS.tar.bz2
61 cd $BINUTILS 61 cd $BINUTILS
62 ./configure --prefix=/usr/local/gold --enable-gold 62 ./configure --prefix=/usr/local/gold --enable-gold
63 make -j3 63 make maybe-all-binutils maybe-all-gold -j4
64 if sudo make install 64 if sudo make maybe-install-binutils maybe-install-gold
65 then 65 then
66 # Still need to figure out graceful way of pointing gyp to use 66 # Still need to figure out graceful way of pointing gyp to use
67 # /usr/local/gold/bin/ld without requiring him to set environment 67 # /usr/local/gold/bin/ld without requiring him to set environment
68 # variables. That will go into bootstrap-linux.sh when it's ready. 68 # variables. That will go into bootstrap-linux.sh when it's ready.
69 echo "Installing gold as /usr/bin/ld." 69 echo "Installing gold as /usr/bin/ld."
70 echo "To uninstall, do 'cd /usr/bin; sudo rm ld; sudo mv ld.orig ld'" 70 echo "To uninstall, do 'cd /usr/bin; sudo rm ld; sudo mv ld.orig ld'"
71 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \ 71 test -f /usr/bin/ld && test ! -f /usr/bin/ld.orig && \
72 sudo mv /usr/bin/ld /usr/bin/ld.orig 72 sudo mv /usr/bin/ld /usr/bin/ld.orig
73 sudo strip /usr/local/gold/bin/ld 73 sudo strip /usr/local/gold/bin/ld
74 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold 74 sudo ln -fs /usr/local/gold/bin/ld /usr/bin/ld.gold
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 sed -e 's/[.]so[.][0-9].*/.so/' | 449 sed -e 's/[.]so[.][0-9].*/.so/' |
450 sort -u); do 450 sort -u); do
451 [ "x${i##*/}" = "xld-linux.so" ] && continue 451 [ "x${i##*/}" = "xld-linux.so" ] && continue
452 [ -r "$i" ] && continue 452 [ -r "$i" ] && continue
453 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 453 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
454 sort -n | tail -n 1)" 454 sort -n | tail -n 1)"
455 [ -r "$i.$j" ] || continue 455 [ -r "$i.$j" ] || continue
456 sudo ln -s "${i##*/}.$j" "$i" 456 sudo ln -s "${i##*/}.$j" "$i"
457 done 457 done
458 fi 458 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698