7 TARGET=powerpc64-unknown-linux-gnu
8 PREFIX=/x-tools/$TARGET
9 SYSROOT=$PREFIX/$TARGET/sysroot
13 cp ../powerpc64-linux-gnu.config .config
14 hide_output ct-ng build
20 # Next, download and build newer binutils.
21 mkdir binutils-$TARGET
22 pushd binutils-$TARGET
23 curl https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS.tar.bz2 | tar xjf -
26 hide_output ../binutils-$BINUTILS/configure --target=$TARGET \
27 --prefix=$PREFIX --with-sysroot=$SYSROOT
29 hide_output make install
31 rm -rf binutils-$TARGET