Skip to content

Commit ca86065

Browse files
committed
gcc@13: fix build on Sequoia and Linux arm64
1 parent 921111a commit ca86065

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Formula/g/[email protected]

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ class GccAT13 < Formula
4747
sha256 "c5e9236430ef6edbdda7de9ac70bf79e21628077a48322cec7f3f064ccfc243d"
4848
end
4949

50+
# Apply additional commits to support Xcode 16 until the next release
51+
patch do
52+
on_macos do
53+
url "https://github.com/iains/gcc-13-branch/compare/fa196a8618c62428a372fb251f9fa292d4f275c2..4fdcc027fcc235805c7cc4bede6948b9a00afe1e.patch"
54+
sha256 "c41b217f1e6dc447e208ade4c76e86d5a95a1bd9790abc28bc9c2a4f09b7eb4e"
55+
end
56+
end
57+
5058
def install
5159
# GCC will suffer build errors if forced to use a particular linker.
5260
ENV.delete "LD"
@@ -102,6 +110,7 @@ def install
102110
# Change the default directory name for 64-bit libraries to `lib`
103111
# https://stackoverflow.com/a/54038769
104112
inreplace "gcc/config/i386/t-linux64", "m64=../lib64", "m64="
113+
inreplace "gcc/config/aarch64/t-aarch64-linux", "lp64=../lib64", "lp64="
105114

106115
make_args = %W[
107116
BOOT_CFLAGS=-I#{Formula["zlib"].opt_include}

0 commit comments

Comments
 (0)