diff options
author | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 05:19:56 +0000 |
---|---|---|
committer | yusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-17 05:19:56 +0000 |
commit | f9569168353af29fe8136e1b507851747dee807e (patch) | |
tree | 66cd7287d5274dd12655a7d75ecb59e31fc5c760 /build | |
parent | 32c727c7652d3d453b6284402caa3bc7021c798b (diff) | |
download | chromium_src-f9569168353af29fe8136e1b507851747dee807e.zip chromium_src-f9569168353af29fe8136e1b507851747dee807e.tar.gz chromium_src-f9569168353af29fe8136e1b507851747dee807e.tar.bz2 |
Add support for Ubuntu 9.10 to install-build-deps.sh
Note that binutils-2.19 does not compile on Ubuntu 9.10.
binutils-2.20 compiles on Ubuntu 9.10, but does not comple on 8.04.
BUG=none
TEST=Ran install-build-deps.sh on ubuntu 9.10 and 8.04.
Original patch by satorux@chromium.org via:
http://codereview.chromium.org/395017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32154 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-x | build/install-build-deps.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh index 66467d3d..a53a028 100755 --- a/build/install-build-deps.sh +++ b/build/install-build-deps.sh @@ -133,8 +133,8 @@ __EOF__ fi } -if ! egrep -q "Ubuntu 8.04|Ubuntu 8.10|Ubuntu 9.04" /etc/issue; then - echo "Only Ubuntu 8.04, 8.10, and 9.04 are currently supported" >&2 +if ! egrep -q 'Ubuntu (8\.04|8\.10|9\.04|9\.10)' /etc/issue; then + echo "Only Ubuntu 8.04, 8.10, 9.04, and 9.10 are currently supported" >&2 exit 1 fi @@ -280,13 +280,19 @@ fi case `ld --version` in *gold*) ;; * ) - # FIXME: avoid installing as /usr/bin/ld echo "Gold is a new linker that links Chrome 5x faster than ld." echo "Don't use it if you need to link other apps (e.g. valgrind, wine)" - echo -n "REPLACE SYSTEM LINKER ld with gold and back up ld as ld.orig? (y/N) " + echo -n "REPLACE SYSTEM LINKER ld with gold and back up ld? (y/N) " if yes_no 1; then - echo "Building binutils." - install_gold || exit 99 + # If the system provides gold, just install it. + if apt-cache show binutils-gold >/dev/null; then + echo "Installing binutils-gold. Backing up ld as ld.single." + sudo apt-get install binutils-gold + else + # FIXME: avoid installing as /usr/bin/ld + echo "Building binutils. Backing up ld as ld.orig." + install_gold || exit 99 + fi else echo "Not installing gold." fi |