Commit 062060c4 authored by Gabriel Jaldon's avatar Gabriel Jaldon

Use '/usr/local/opt/gcc@7' instead of '/usr/local/opt/gcc'

Homebrew uess gcc-8 for gcc and no longer gcc-7. To continue
to use gcc-7 in homebrew, we will need to install gcc@7. gcc@7
will then be linked to '/usr/local/opt/gcc@7'.
parent 7a8bd7ab
......@@ -7,10 +7,10 @@ class ArmElfBinutils < Formula
depends_on 'gcc' => :build
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--disable-nls', '--target=x86_64-elf','--disable-werror',
......
......@@ -14,10 +14,10 @@ class ArmElfGcc < Formula
def install
binutils = Formulary.factory 'arm-elf-binutils'
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['PATH'] += ":#{binutils.prefix/"bin"}"
mkdir 'build' do
......
......@@ -9,10 +9,10 @@ class ArmElfGdb < Formula
depends_on 'arm-elf-gcc'
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--target=arm-elf-eabi', "--prefix=#{prefix}" ,'--disable-werror'
......
......@@ -7,10 +7,10 @@ class I586ElfBinutils < Formula
depends_on 'gcc' => :build
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--disable-nls', '--target=x86_64-elf','--disable-werror',
......
......@@ -16,10 +16,10 @@ class I586ElfGcc < Formula
binutils = Formulary.factory 'i586-elf-binutils'
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['PATH'] += ":#{binutils.prefix/"bin"}"
mkdir 'build' do
......
......@@ -9,10 +9,10 @@ class I586ElfGdb < Formula
depends_on 'i586-elf-gcc'
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--target=i586-elf', "--prefix=#{prefix}", "--disable-werror"
......
......@@ -7,10 +7,10 @@ class X8664ElfBinutils < Formula
depends_on 'gcc' => :build
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--disable-nls', '--target=x86_64-elf','--disable-werror',
......
......@@ -15,10 +15,10 @@ class X8664ElfGcc < Formula
def install
binutils = Formulary.factory 'x86_64-elf-binutils'
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['PATH'] += ":#{binutils.prefix/"bin"}"
mkdir 'build' do
......
......@@ -9,10 +9,10 @@ class X8664ElfGdb < Formula
depends_on 'x86_64-elf-gcc'
def install
ENV['CC'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc/bin/gcc-7'
ENV['CC'] = '/usr/local/opt/gcc@7/bin/gcc-7'
ENV['CXX'] = '/usr/local/opt/gcc@7/bin/g++-7'
ENV['CPP'] = '/usr/local/opt/gcc@7/bin/cpp-7'
ENV['LD'] = '/usr/local/opt/gcc@7/bin/gcc-7'
mkdir 'build' do
system '../configure', '--target=x86_64-pc-linux', "--prefix=#{prefix}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment