blob: 8da663e4dd0273eb6d9ec3e417f442223bebc2af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
name: stage2-binutils
kind: chunk
build-system: autotools
configure-commands:
- |
case "$MORPH_ARCH" in
mips64*) ARCH_FLAGS="--with-arch=octeon2" ;;
esac
export STAGE2_SYSROOT="$(dirname $(pwd))"
export CXX=false
TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
# binutils has its own embedded libtool, which is old and strips out
# `--sysroot`. Work around by modifying the compiler command to
# include the sysroot flag
export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT"
./configure --prefix="$PREFIX" --disable-nls --disable-werror \
--build=$(sh config.guess) \
--host=$TARGET_STAGE1 \
--target=$TARGET_STAGE1 \
$ARCH_FLAGS
build-commands:
- |
export STAGE2_SYSROOT="$(dirname $(pwd))"
make
|