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

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

Issue 8073002: Linux: Don't bother trying to install gold via apt-get. Just always build our own copy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 echo "Gold is a new linker that links Chrome 5x faster than GNU ld." 307 echo "Gold is a new linker that links Chrome 5x faster than GNU ld."
308 echo -n "*** To use the gold linker, " 308 echo -n "*** To use the gold linker, "
309 echo "you must pass -B/usr/local/gold/bin/ to g++ ***" 309 echo "you must pass -B/usr/local/gold/bin/ to g++ ***"
310 echo -n "Install the gold linker? (y/N) " 310 echo -n "Install the gold linker? (y/N) "
311 if yes_no 1; then 311 if yes_no 1; then
312 do_inst_gold=1 312 do_inst_gold=1
313 fi 313 fi
314 fi 314 fi
315 if test "$do_inst_gold" = "1" 315 if test "$do_inst_gold" = "1"
316 then 316 then
317 # If the system provides a good version of gold, just install it. 317 echo "Building binutils with gold..."
318 if apt-cache show binutils-gold | grep -Eq 'Version: 2.2[1-9].*'; then 318 install_gold || exit 99
319 echo "Installing binutils-gold. Backing up ld as ld.single."
320 sudo apt-get install binutils-gold
321 else
322 echo "Building binutils with gold..."
323 install_gold || exit 99
324 fi
325 else 319 else
326 echo "Not installing gold." 320 echo "Not installing gold."
327 fi 321 fi
328 fi 322 fi
329 323
330 # Install 32bit backwards compatibility support for 64bit systems 324 # Install 32bit backwards compatibility support for 64bit systems
331 if [ "$(uname -m)" = "x86_64" ]; then 325 if [ "$(uname -m)" = "x86_64" ]; then
332 if test "$do_inst_lib32" = "" 326 if test "$do_inst_lib32" = ""
333 then 327 then
334 echo "Installing 32bit libraries not already provided by the system" 328 echo "Installing 32bit libraries not already provided by the system"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 sed -e 's/[.]so[.][0-9].*/.so/' | 498 sed -e 's/[.]so[.][0-9].*/.so/' |
505 sort -u); do 499 sort -u); do
506 [ "x${i##*/}" = "xld-linux.so" ] && continue 500 [ "x${i##*/}" = "xld-linux.so" ] && continue
507 [ -r "$i" ] && continue 501 [ -r "$i" ] && continue
508 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | 502 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' |
509 sort -n | tail -n 1)" 503 sort -n | tail -n 1)"
510 [ -r "$i.$j" ] || continue 504 [ -r "$i.$j" ] || continue
511 sudo ln -s "${i##*/}.$j" "$i" 505 sudo ln -s "${i##*/}.$j" "$i"
512 done 506 done
513 fi 507 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