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