From 23caccd27c8d28b3c494a5ab51e7ba006b6b1f99 Mon Sep 17 00:00:00 2001 From: zykron1 <85203848+zykron1@users.noreply.github.com> Date: Fri, 17 Feb 2023 07:08:18 -0800 Subject: [PATCH] Brew no longer works Brew does not give the right packages required to build gcc, if you make sure the user has wget installed this would be a major fix to lots of problems that may occur like it did with me. --- 11-kernel-crosscompiler/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/11-kernel-crosscompiler/README.md b/11-kernel-crosscompiler/README.md index 6d48994..4a2ba73 100644 --- a/11-kernel-crosscompiler/README.md +++ b/11-kernel-crosscompiler/README.md @@ -19,6 +19,7 @@ you didn't do it on lesson 00, and get those packages with `brew install` - mpfr - libmpc - gcc +- wget Yes, we will need `gcc` to build our cross-compiled `gcc`, especially on a Mac where gcc has been deprecated for `clang` @@ -62,6 +63,7 @@ curl -O https://ftp.gnu.org/gnu/gcc/gcc-4.9.1/gcc-4.9.1.tar.bz2 tar xf gcc-4.9.1.tar.bz2 mkdir gcc-build cd gcc-build +../gcc-4.9.1/contrib/download_prerequisites ../gcc-4.9.1/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --disable-libssp --enable-languages=c --without-headers make all-gcc make all-target-libgcc