gcc@4.7: apply patches from MacPorts
Closes #15252. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
be0537031f
commit
22585e10b0
1 changed files with 19 additions and 4 deletions
|
@ -25,7 +25,7 @@ class GccAT47 < Formula
|
|||
url "https://ftp.gnu.org/gnu/gcc/gcc-4.7.4/gcc-4.7.4.tar.bz2"
|
||||
mirror "https://ftpmirror.gnu.org/gcc/gcc-4.7.4/gcc-4.7.4.tar.bz2"
|
||||
sha256 "92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
head "svn://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch"
|
||||
|
||||
|
@ -73,10 +73,25 @@ class GccAT47 < Formula
|
|||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
# Fix 10.10 issues: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=215251
|
||||
# Don't check Darwin kernel version (GCC PR target/61407
|
||||
# <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407>).
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/7293b7d3/gcc47/patch-10.10.diff"
|
||||
sha256 "61e5d0f18db59220cbd99717e9b644c1d0f3502b09ada746b60850cacda07328"
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/e94d7cc6e7ffdc314aeea0970d34428796583c6d/lang/gcc47/files/remove-kernel-version-check.patch"
|
||||
sha256 "d03b0ce9c230bcd0cfc10e3eb8633c11f6fcfe1804d40f0c3713543090e48db7"
|
||||
end
|
||||
|
||||
# Handle OS X deployment targets correctly (GCC PR target/63810
|
||||
# <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/e94d7cc6e7ffdc314aeea0970d34428796583c6d/lang/gcc47/files/macosx-version-min.patch"
|
||||
sha256 "f3e46a2ec8c6c2e090b56f08e122543009c60944f39f2b90e64de642a4c0b0f3"
|
||||
end
|
||||
|
||||
# Don't link with "-flat_namespace -undefined suppress" on Yosemite and
|
||||
# later (#45483).
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/macports/macports-ports/77a7df3e41b6fac5c94934329cedb2fee8830344/lang/gcc47/files/yosemite-libtool.patch"
|
||||
sha256 "ff3614851ad7b4d2b4915e7c7b0249a45ae33391a5b17b9a870edad8ef62181c"
|
||||
end
|
||||
|
||||
def install
|
||||
|
|
Loading…
Reference in a new issue