Skip to content

Commit b904223

Browse files
committed
gcc@12 12.4.0
1 parent 06f00b8 commit b904223

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

Formula/g/[email protected]

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class GccAT12 < Formula
22
desc "GNU compiler collection"
33
homepage "https://gcc.gnu.org/"
4-
url "https://ftp.gnu.org/gnu/gcc/gcc-12.3.0/gcc-12.3.0.tar.xz"
5-
mirror "https://ftpmirror.gnu.org/gcc/gcc-12.3.0/gcc-12.3.0.tar.xz"
6-
sha256 "949a5d4f99e786421a93b532b22ffab5578de7321369975b91aec97adfda8c3b"
4+
url "https://ftp.gnu.org/gnu/gcc/gcc-12.4.0/gcc-12.4.0.tar.xz"
5+
mirror "https://ftpmirror.gnu.org/gcc/gcc-12.4.0/gcc-12.4.0.tar.xz"
6+
sha256 "704f652604ccbccb14bdabf3478c9511c89788b12cb3bbffded37341916a9175"
77
license "GPL-3.0-or-later" => { with: "GCC-exception-3.1" }
88

99
livecheck do
@@ -44,8 +44,8 @@ class GccAT12 < Formula
4444
# Branch from the Darwin maintainer of GCC, with a few generic fixes and
4545
# Apple Silicon support, located at https://github.com/iains/gcc-12-branch
4646
patch do
47-
url "https://raw.githubusercontent.com/Homebrew/formula-patches/f1188b90d610e2ed170b22512ff7435ba5c891e2/gcc/gcc-12.3.0.diff"
48-
sha256 "9da2f964d8aeaea7c30623d253c3d36d398baa3db907ebe38e2a9ce1f005818b"
47+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/ca7047dad38f16fb02eb63bd4447e17d0b68b3bb/gcc/gcc-12.4.0.diff"
48+
sha256 "c0e8e94fbf65a6ce13286e7f13beb5a1d84b182a610489026ce3e2420fc3d45c"
4949
end
5050

5151
def install
@@ -91,6 +91,8 @@ def install
9191
toolchain_path = "/Library/Developer/CommandLineTools"
9292
args << "--with-ld=#{toolchain_path}/usr/bin/ld-classic"
9393
end
94+
95+
make_args = []
9496
else
9597
# Fix cc1: error while loading shared libraries: libisl.so.15
9698
args << "--with-boot-ldflags=-static-libstdc++ -static-libgcc #{ENV.ldflags}"
@@ -104,11 +106,16 @@ def install
104106
# Change the default directory name for 64-bit libraries to `lib`
105107
# https://stackoverflow.com/a/54038769
106108
inreplace "gcc/config/i386/t-linux64", "m64=../lib64", "m64="
109+
110+
make_args = %W[
111+
BOOT_CFLAGS=-I#{Formula["zlib"].opt_include}
112+
BOOT_LDFLAGS=-L#{Formula["zlib"].opt_lib}
113+
]
107114
end
108115

109116
mkdir "build" do
110117
system "../configure", *args
111-
system "make"
118+
system "make", *make_args
112119

113120
# Do not strip the binaries on macOS, it makes them unsuitable
114121
# for loading plugins

0 commit comments

Comments
 (0)