fi
# first install powerpc64 gcc-8 cross-compiler
-apt-get install gcc-8-powerpc64-linux-gnu
+apt-get -y install gcc-8-powerpc64-linux-gnu \
+ gcc-powerpc64-linux-gnu \
+ wget texinfo
+
+# it your responsibility to check that the archive downloaded below is
+# uncompromised!
runuser $SUDO_USER --preserve-environment -c '
cd /home/$SUDO_USER
wget https://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.gz -O gdb-8.3.tar.gz
tar -xvzf gdb-8.3.tar.gz
cd gdb-8.3
-mkdir build
+mkdir -p build
cd build
-./configure --srcdir=.. --host=x86_64-linux --target=powerpc64-linux-gnu
+../configure --srcdir=.. --host=x86_64-linux --target=powerpc64-linux-gnu
make
'
cd /home/$SUDO_USER/src/gdb-8.3/build
-make -n install
+make install
echo -e "
\e[1;91mCross-compiled GDB 8.3 and compiler now installed.\e[0m
"