blob: 9eb81e8856c00ba9ac51ea07e2eaa693f8098a3c [file] [log] [blame]
# 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 script.
set -e
set -x
if [ -z "$1" ]; then
echo "Directory of binutils not given."
exit 1
cd "$1"
./configure \
--enable-deterministic-archives \
--enable-gold=default \
--enable-plugins \
--enable-threads \
make -j8 all
echo "= binutils/config.h ================================================"
cat binutils/config.h
echo "===================================================================="
make install