3 then echo "Please run as root"
7 # first install powerpc64 gcc-8 cross-compiler
8 apt-get
-y install gcc-8-powerpc64-linux-gnu \
9 gcc-powerpc64-linux-gnu \
12 # it your responsibility to check that the archive downloaded below is
15 runuser
$SUDO_USER --preserve-environment -c '
19 wget https://ftp.gnu.org/gnu/gdb/gdb-8.3.tar.gz -O gdb-8.3.tar.gz
20 tar -xvzf gdb-8.3.tar.gz
24 ../configure --srcdir=.. --host=x86_64-linux --target=powerpc64-linux-gnu
27 cd /home
/$SUDO_USER/src
/gdb-8.3
/build
30 \e[1;91mCross-compiled GDB 8.3 and compiler now installed.\e[0m