1#!/bin/sh
2# Copyright 2014 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Script to build binutils found in /build/binutils-XXXX when inside a chroot.
7# Don't call this script yourself, instead use the build-all.sh script.
8
9set -e
10
11if [ -z "$1" ]; then
12 echo "Directory of binutils not given."
13 exit 1
14fi
15
16cd "$1"
17./configure --enable-gold=default --enable-threads --enable-plugins \
18  --prefix=/build/output
19make -j8 all
20make install
21