diff options
Diffstat (limited to 'homebrew/gccat49/.make.sh-auto')
-rw-r--r-- | homebrew/gccat49/.make.sh-auto | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/homebrew/gccat49/.make.sh-auto b/homebrew/gccat49/.make.sh-auto new file mode 100644 index 000000000..6a1e90533 --- /dev/null +++ b/homebrew/gccat49/.make.sh-auto @@ -0,0 +1,11 @@ +pkg:setup +ENV.delete "LD" +resources.each { |r| r.stage(buildpath/r.name) } +version_suffix = version.to_s.slice(/\d\.\d/) +args = [ +"--build=x86_64-apple-darwin#{osmajor}", "--prefix=#{prefix}", "--libdir=#{lib}/gcc/#{version_suffix}", "--enable-languages=c,c++,fortran,objc,obj-c++", "--program-suffix=-#{version_suffix}", "--with-system-zlib", "--enable-libstdcxx-time=yes", "--enable-stage1-checking", "--enable-checking=release", "--enable-lto", "--enable-plugin", "--with-build-config=bootstrap-debug", "--disable-werror", "--with-pkgversion=Homebrew GCC #{pkg_version} #{build.used_options*" "}".strip, "--with-bugurl=https://github.com/Homebrew/homebrew-core/issues", "MAKEINFO=missing", "--disable-nls", "--enable-multilib", ] +inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}" +mkdir "build" && cd build +unless MacOS::CLT.installed? +args << "--with-native-system-header-dir=/usr/include" +args << "--with-sysroot=#{MacOS.sdk_path}" |