1
0
mirror of https://github.com/bebbo/amiga-gcc.git synced 2026-05-04 00:14:35 +00:00

updated macos infos in README.md

This commit is contained in:
Christian Vogelgsang
2021-11-27 18:27:46 +01:00
parent 652b6a7e9b
commit e3ff9e3118

View File

@@ -27,32 +27,27 @@ If building with a normal user, the `PREFIX` directory must be writable (default
### macOS
Install Homebrew (https://brew.sh/) or any other package manager first. The compiler will be installed together with XCode. Once XCode and Homebrew are up install the required packages:
`brew install bash wget make lhasa gmp mpfr libmpc flex gettext gnu_sed texinfo gcc make autoconf`
```
brew install bash wget make lhasa gmp mpfr libmpc flex gettext gnu-sed texinfo gcc@11 make autoconf
```
By default macOS uses an outdated version of bash. Therefore, on macOS host always pass the the SHELL=/usr/local/bin/bash parameter (or any other valid path pointing to bash), e.g.:
```
make all SHELL=/usr/local/bin/bash
make all SHELL=$(brew --prefix)/bin/bash
```
On macOS it may be also necessary to point to the brew version of gcc make and autoconf, e.g.:
```
CC=gcc-9 CXX=g++-9 gmake all SHELL=/usr/local/bin/bash
CC=gcc-11 CXX=g++-11 gmake all SHELL=$(brew --prefix)/bin/bash
```
**ALSO NOTE** If you want `m68k-amigaos-gdb` then you have to build it with `gcc`
### macOs on Mi1
Native build on M1 Mac has proved difficult at this stage for a number of reasons. I filed (and closed) a separate issue.
We can, however, get an x86 version of the toolchain working on M1 with these steps.
1. Ensure rosetta is installed. `/usr/sbin/softwareupdate --install-rosetta --agree-to-license`
2. Ensure Xcode command line tools are installed `xcode-select --install`
3. Install convince Homebrew to install an x86_64 version instead `arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`. Ensure `/usr/local/bin` is early in your path.
4. Use the x86 homebrew to install the required packages `arch -x86_64 brew install bash wget make lhasa gmp mpfr libmpc flex gettext texinfo gcc make autoconf`
5. `git clone git@github.com:bebbo/amiga-gcc ; cd amiga-gcc`
6. specify x86 when building `CC=gcc-10 CXX=g++-10 SHELL=/usr/local/bin/bash arch -x86_64 gmake clean update all`.
7. profit!
Native builds on M1 Macs are now directly supported.
### Windows with Cygwin
Install cygwin via setup.exe and add wget. Then open cygwin shell and run: