Skip to content

Commit

Permalink
Add missing GMP library.
Browse files Browse the repository at this point in the history
  • Loading branch information
cahirwpz committed Jan 6, 2025
1 parent 485803e commit 88fe88c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion toolchain-m68k.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'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://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',
Expand Down Expand Up @@ -153,7 +154,7 @@ def touch_genfiles(dst):
def download():
with cwd('{archives}'):
for url in URLS:
if type(url) == tuple:
if type(url) is tuple:
url, name = url[0], url[1]
else:
name = path.basename(url)
Expand Down Expand Up @@ -270,6 +271,14 @@ def build():
make('{autoconf}', parallel=True)
make('{autoconf}', 'install')

unpack('{gmp}')
configure('{gmp}',
'--prefix={host}',
'--disable-shared',
'--enable-static')
make('{gmp}', parallel=True)
make('{gmp}', 'install')

prepare_target()

unpack('vasm', work_dir='{build}')
Expand Down Expand Up @@ -304,6 +313,7 @@ def build():
'--disable-plugins',
'--disable-werror',
'--disable-tui',
'--with-libgmp-prefix={host}',
'--with-python=' + sys.executable,
'--target=m68k-amigaos',
from_dir='{submodules}/{binutils}')
Expand Down Expand Up @@ -422,6 +432,7 @@ def clean():
automake='automake-1.15',
autoconf='autoconf-2.13',
texinfo='texinfo-4.12',
gmp='gmp-6.1.2',
NDK='NDK_3.9',
binutils='binutils-gdb',
fsuae='fs-uae',
Expand Down

0 comments on commit 88fe88c

Please sign in to comment.