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