Skip to content

Instantly share code, notes, and snippets.

@TheGag96
TheGag96 / build_cross_gcc
Last active July 23, 2023 17:27 — forked from preshing/build_cross_gcc
Raspberry Pi x64 Cross GCC build script
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.