From b6bb861fbbd3f85d4bd4a1ef9959b4c9da1795dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Mon, 6 Jan 2025 15:15:28 +0100 Subject: [PATCH] Add gcc 6.5.0b from Bebbo. --- .gitmodules | 3 +++ submodules/gcc-bebbo | 1 + toolchain-m68k.py | 59 ++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 160000 submodules/gcc-bebbo diff --git a/.gitmodules b/.gitmodules index 6395182..b8dfa13 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "submodules/fs-uae"] path = submodules/fs-uae url = https://github.com/FrodeSolheim/fs-uae.git +[submodule "gcc-bebbo"] + path = submodules/gcc-bebbo + url = https://github.com/bebbo/gcc.git diff --git a/submodules/gcc-bebbo b/submodules/gcc-bebbo new file mode 160000 index 0000000..a970bf7 --- /dev/null +++ b/submodules/gcc-bebbo @@ -0,0 +1 @@ +Subproject commit a970bf7ee522b39d60b428b0e6fd6f03e87c2a30 diff --git a/toolchain-m68k.py b/toolchain-m68k.py index 192e17e..fe94122 100644 --- a/toolchain-m68k.py +++ b/toolchain-m68k.py @@ -20,7 +20,10 @@ 'https://ftp.gnu.org/gnu/bison/bison-1.35.tar.gz', 'https://ftp.gnu.org/gnu/texinfo/texinfo-4.12.tar.gz', 'https://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz', - 'https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2', + 'https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.2.1.tar.bz2', + 'https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.6.tar.bz2', + 'https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz', + 'https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.18.tar.bz2', ('https://github.com/askeksa/Shrinkler/archive/refs/tags/v4.7.tar.gz', 'Shrinkler-4.7.tar.gz'), ('https://github.com/emmanuel-marty/salvador/archive/refs/tags/1.4.2.tar.gz', @@ -279,6 +282,34 @@ def build(): make('{gmp}', parallel=True) make('{gmp}', 'install') + unpack('{mpfr}') + configure('{mpfr}', + '--prefix={host}', + '--with-gmp={host}', + '--disable-shared', + '--enable-static') + make('{mpfr}', parallel=True) + make('{mpfr}', 'install') + + unpack('{mpc}') + configure('{mpc}', + '--prefix={host}', + '--with-gmp={host}', + '--with-mpfr={host}', + '--disable-shared', + '--enable-static') + make('{mpc}', parallel=True) + make('{mpc}', 'install') + + unpack('{isl}') + configure('{isl}', + '--prefix={host}', + '--with-gmp-prefix={host}', + '--disable-shared', + '--enable-static') + make('{isl}', parallel=True) + make('{isl}', 'install') + prepare_target() unpack('vasm', work_dir='{build}') @@ -350,6 +381,26 @@ def build(): make('{gcc}', 'all-gcc', MAKEINFO='makeinfo') make('{gcc}', 'install-gcc', MAKEINFO='makeinfo') + with env(CC=CC, CXX=CXX, CFLAGS=FLAGS, CXXFLAGS=FLAGS): + configure('{gcc_bebbo}', + '--prefix={prefix}', + '--infodir={prefix}/{target}/info', + '--mandir={prefix}/share/man', + '--program-prefix=m68k-amigaos-', + '--program-suffix=-6.5.0b', + '--with-gmp={host}', + '--with-mpfr={host}', + '--with-mpc={host}', + '--with-isl={host}', + '--target=m68k-amigaos', + '--enable-languages=c', + '--enable-version-specific-runtime-libs', + '--disable-nls', + '--disable-libssp', + from_dir='{submodules}/{gcc_bebbo}') + make('{gcc_bebbo}', 'all-gcc', parallel=True) + make('{gcc_bebbo}', 'install-gcc') + with env(CC=CC, CXX=CXX, CFLAGS=FLAGS, CXXFLAGS=FLAGS, PATH=PATH): fs_uae_bootstrap() configure('{fsuae}', @@ -432,11 +483,15 @@ def clean(): automake='automake-1.15', autoconf='autoconf-2.13', texinfo='texinfo-4.12', - gmp='gmp-6.1.2', + gmp='gmp-6.2.1', + mpfr='mpfr-3.1.6', + mpc='mpc-1.0.3', + isl='isl-0.18', NDK='NDK_3.9', binutils='binutils-gdb', fsuae='fs-uae', gcc='gcc-2.95.3', + gcc_bebbo='gcc-bebbo', shrinkler='Shrinkler-4.7', salvador='salvador-1.4.2', lzsa='lzsa-1.4.1',