pin libcurl3-gnutls
[dev-env-setup.git] / ppc64-gdb-gcc
index bbf4b27a7719fdfd894d0ae557bfcab7bece68ba..c21752d6299c9376f0d90b01acfb61a93e7c3eac 100755 (executable)
@@ -5,7 +5,12 @@ if [ "$EUID" -ne 0 ]
 fi
 
 # first install powerpc64 gcc-8 cross-compiler
-apt-get install gcc-8-powerpc64-linux-gnu
+apt-get 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
@@ -14,13 +19,13 @@ cd src
 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
 "