Updated Compiling from source (markdown)

JayDDee
2025-01-07 01:21:35 -05:00
parent f526ed63b2
commit df2f8f8e8d

@@ -82,17 +82,23 @@ If Xcode is installed this is probably not necessary. Using Xcode to build cpumi
#### Homebrew package manager
Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages including GCC. On x86_64 CPUs replace `aarch64` with `x86_64` in targeted packages.
`% brew install aarch64-elf-binutils aarch64-elf-gcc gcc autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages.
Homebrew may compile some packages from source which can take a long time.
####ARM64:
`% brew install aarch64-elf-binutils autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
cpuminer-opt can now be compiled on MacOS ARM64 with the default Clang compiler. See Compiling cpuminer-opt below.
#### x64_64 use GCC
####x86_64:
x86_64 CPUs must be compiled using GCC. Continue to change the compiler to GCC. Do not use GCC on ARM64, it won't work.
x86_64 CPUs must be compiled using GCC.
`% brew install x86_64-elf-binutils x86_64-elf-gcc gcc autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
Change the default compiler to GCC. Do not use GCC on ARM64, it won't work.
There are many tutorials available on how to switch compilers, some methods are temporary and others are more persistent.
The following will work for the existing terminal session.