summaryrefslogtreecommitdiffstats
path: root/third_party/binutils/build-one.sh
blob: 1ae62d10c7967b533d0353bdab69ac6b44c06d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Script to build binutils found in /build/binutils-XXXX when inside a chroot.
# Don't call this script yourself, instead use the build-all.sh script.

set -e

if [ -z "$1" ]; then
 echo "Directory of binutils not given."
 exit 1
fi

cd "$1"
./configure --enable-gold=default --enable-threads --enable-plugins \
  --prefix=/build/output
make -j8 all
make install