## Build binutils-gdb
-# Set HOST triplet
-
-if [ "`arch`" = "x86_64" ]; then
- export HOST="x86_64-pc-linux-gnu"
-elif [ "`arch`" = "ppc64le" ]; then
- export HOST="powerpc64le-linux-gnu"
-fi
-
cd binutils-gdb
git checkout svp64
mkdir ../binutils-gdb-build
cd ../binutils-gdb-build
AR=ar AS=as ../binutils-gdb/configure --prefix=/usr/local/binutils-gdb \
---host=${HOST} --target=powerpc64le-linux-gnu --disable-nls --enable-shared \
---enable-64-bit-bfd --disable-multilib --enable-ld=default --enable-gold=yes \
---enable-plugins --enable-threads
+ --target=powerpc64le-linux-gnu --disable-nls --enable-shared \
+ --enable-64-bit-bfd --disable-multilib --enable-ld=default --enable-gold=yes \
+ --enable-plugins --enable-threads
make -j$(nproc)
# make check |& tee chk.log
make install