Skip to content

Commit

Permalink
Merge pull request #550 from mistydemeo/backport_g3_gcc_fix
Browse files Browse the repository at this point in the history
Backport G3 GCC fix to older GCCs
  • Loading branch information
mistydemeo committed Jan 12, 2018
2 parents 67e64de + 38e441f commit 2957b57
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Formula/gcc44.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap.
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc45.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap.
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc46.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc47.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc48.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if MacOS.version < :leopard
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
end
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc49.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if build.with? "all-languages"
# Everything but Ada, which requires a pre-existing GCC Ada compiler
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if MacOS.version < :leopard
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
end
Expand Down
4 changes: 4 additions & 0 deletions Library/Formula/gcc6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"

# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
# https://github.com/mistydemeo/tigerbrew/issues/538
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3

if MacOS.version < :leopard
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
end
Expand Down

0 comments on commit 2957b57

Please sign in to comment.