mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 04:56:39 +00:00
Instead of just installing a pre-patched gcc formula, copy the local formula from Homebrew and apply a patch to it, before then installing it. This should be a lot more future-proof.
22 lines
770 B
Diff
22 lines
770 B
Diff
diff --git a/Formula/gcc.rb b/Formula/gcc.rb
|
|
index 1bd636d496..03ad124218 100644
|
|
--- a/Formula/gcc.rb
|
|
+++ b/Formula/gcc.rb
|
|
@@ -53,7 +53,7 @@ class Gcc < Formula
|
|
# - Ada, which requires a pre-existing GCC Ada compiler to bootstrap
|
|
# - Go, currently not supported on macOS
|
|
# - BRIG
|
|
- languages = %w[c c++ objc obj-c++ fortran]
|
|
+ languages = %w[c c++ objc obj-c++ fortran jit]
|
|
|
|
osmajor = `uname -r`.split(".").first
|
|
pkgversion = "Homebrew GCC #{pkg_version} #{build.used_options*" "}".strip
|
|
@@ -73,6 +73,7 @@ class Gcc < Formula
|
|
--with-system-zlib
|
|
--with-pkgversion=#{pkgversion}
|
|
--with-bugurl=https://github.com/Homebrew/homebrew-core/issues
|
|
+ --enable-host-shared
|
|
]
|
|
|
|
# Xcode 10 dropped 32-bit support
|