This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:bullseye-20230725 | |
RUN apt-get -y update | |
RUN apt-get -y install build-essential python3 git | |
RUN apt-get -y install libgmp-dev libmpfr-dev libmpc-dev libexpat-dev liblzma-dev libsource-highlight-dev libpython3-dev libbabeltrace-dev libipt-dev libncurses5-dev libdebuginfod-dev meson ninja-build texinfo pkg-config python-is-python3 flex diffutils | |
RUN apt-get -y install --install-suggests gcc | |
# Setup build directory | |
RUN mkdir -p /root/gcc-cross-compiler/build | |
WORKDIR /root/gcc-cross-compiler/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -v | |
# Install prerequisites | |
sudo apt-get -y install gcc \ | |
libgmp-dev \ | |
libmpfr-dev \ | |
libmpc-dev \ |