1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
"name": "GccAT7",
"description": "GNU compiler collection",
"url": "https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz",
"mirror": "https://ftpmirror.gnu.org/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz",
"homepage": "https://gcc.gnu.org/",
"depends": [
{
"depend": "gmp",
"build-depend": false
},
{
"depend": "isl",
"build-depend": false
},
{
"depend": "libmpc",
"build-depend": false
},
{
"depend": "mpfr",
"build-depend": false
}
],
"resource": [],
"conflicts": [],
"patches": [
{
"url": "https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc%407/gcc7-xcode10.2.patch",
"strip": "1"
}
],
"install": [
"ENV.delete \"LD\"",
"version_suffix = version.to_s.slice(/\\d/)",
"ENV[\"gcc_cv_prog_makeinfo_modern\"] = \"no\"",
"languages = %w[c c++ objc obj-c++ fortran]",
"osmajor = `uname -r`.chomp",
"args = [",
"\"--build=x86_64-apple-darwin#{osmajor}\",",
"\"--prefix=#{prefix}\",",
"\"--libdir=#{lib}/gcc/#{version_suffix}\",",
"\"--enable-languages=#{languages.join(\",\")}\",",
"\"--program-suffix=-#{version_suffix}\",",
"\"--with-gmp=#{Formula[\"gmp\"].opt_prefix}\",",
"\"--with-mpfr=#{Formula[\"mpfr\"].opt_prefix}\",",
"\"--with-mpc=#{Formula[\"libmpc\"].opt_prefix}\",",
"\"--with-isl=#{Formula[\"isl\"].opt_prefix}\",",
"\"--with-system-zlib\",",
"\"--enable-checking=release\",",
"\"--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*\" \"}\".strip,",
"\"--with-bugurl=https://github.com/Homebrew/homebrew-core/issues\",",
"\"--disable-nls\",",
"]",
"args << \"--disable-multilib\" if DevelopmentTools.clang_build_version >= 1000",
"inreplace \"libgcc/config/t-slibgcc-darwin\", \"@shlib_slibdir@\", \"#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}\"",
"mkdir \"build\" do",
"if !MacOS::CLT.installed?",
"args << \"--with-native-system-header-dir=/usr/include\"",
"args << \"--with-sysroot=#{MacOS.sdk_path}\"",
"elsif MacOS.version >= :mojave",
"args << \"--with-native-system-header-dir=/usr/include\"",
"args << \"--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk\"",
"end",
"system \"../configure\", *args",
"system \"make\"",
"system \"make\", \"install\""
],
"version": "7.4.0",
"file": "gcc@7.rb"
}
|