mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -85,7 +85,9 @@ Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages
|
||||
`% brew install aarch64-elf-binutils aarch64-elf-gcc gcc autoconf automake ca-certificates gettext git gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
|
||||
|
||||
Homebrew compiles packages from source which can take a long time.
|
||||
|
||||
Compiling for ARM64 currently only works with Clang, x86_64 requires GCC.
|
||||
|
||||
For x86_64 find the GCC version. "gcc" is linked to clang so it's necessary to include the version to actually call gcc.The easiest way is tyo type `gcc-` then hit TAB for command completion. If multiple versions are installed they will all be listed. To use gcc the CC & CXX environment variables must be defined with the version included. At time of writing gcc-14 is the default, change version as required. The variables may be set in the shell profile, in CFLAGS or from the command line at user's preference.
|
||||
|
||||
`$ export CC=gcc-14`
|
||||
|
Reference in New Issue
Block a user