It looks like the latest versions of Homebrew now support the HOMEBREW_CC
and HOMEBREW_CXX
environment variables.
So now you can do the following:
$ HOMEBREW_CC=gcc-4.2 HOMEBREW_CXX=g++-4.2 brew install ice
More Related Contents:
- Homebrew refusing to link OpenSSL
- How to install latest version of openssl Mac OS X El Capitan
- Update OpenSSL on OS X with Homebrew
- How to fix homebrew permissions?
- Why is %eax zeroed before a call to printf?
- dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
- How can I start PostgreSQL server on Mac OS X?
- What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?
- `pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)
- How to use GNU sed on Mac OS 10.10+, ‘brew install –default-names’ no longer supported
- Brew doctor says: “Warning: /usr/local/include isn’t writable.”
- ld: library not found for -lcrt0.o on OSX 10.6 with gcc/clang -static flag
- Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)
- How to run the Homebrew installer under Rosetta 2 on M1 Macbook
- How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?
- Is there a way to install gcc in OSX without installing Xcode?
- Building OSX App Bundle
- OSX – replace gcc version 4.2.1 with 4.9 installed via Homebrew
- Install GNU GCC on mac
- Uninstall / remove a Homebrew package including all its dependencies
- PDFtk Server on OS X 10.11
- Error: The ‘brew link’ step did not complete successfully
- Installing Homebrew on macOS
- What is the best/safest way to reinstall Homebrew?
- where/how does Apples GCC store DWARF inside an executable
- Postgres – FATAL: database files are incompatible with server
- x64 nasm: pushing memory addresses onto the stack & call function
- Stuck at “.android/repositories.cfg could not be loaded.”
- How to static link on OS X
- How to check in AppleScript if an app is running, without launching it – via osascript utility