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 9 set -e 10 11 if [ -z "$1" ]; then 12 echo "Directory of binutils not given." 13 exit 1 14 fi 15 16 cd "$1" 17 ./configure --enable-gold=default --enable-threads --enable-plugins \ 18 --prefix=/build/output 19 make -j8 all 20 make install 21