From 937ee7882e340ff88247931a253421cf3c62cb78 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Sat, 31 Aug 2013 23:34:07 -0700 Subject: [PATCH] gfortran formula improvement. * Disable isl and cloog version check to avoid break when they upgrade. * Enable link-time-optimization (LTO). --- Formula/gfortran.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Formula/gfortran.rb b/Formula/gfortran.rb index dfb263ce5f..a04e4d4872 100644 --- a/Formula/gfortran.rb +++ b/Formula/gfortran.rb @@ -48,12 +48,15 @@ class Gfortran < Formula "--with-mpc=#{Formula.factory('libmpc').opt_prefix}", "--with-cloog=#{Formula.factory('cloog').opt_prefix}", "--with-isl=#{Formula.factory('isl').opt_prefix}", + # ...and disable isl and cloog version checks in case they upgrade + "--disable-cloog-version-check", + "--disable-isl-version-check", # ...we build the stage 1 gcc with clang (which is know to fail checks) "--enable-checking=release", "--disable-stage1-checking", - # ...speed up build by ignoring cxx - "--disable-build-poststage1-with-cxx", - "--disable-libstdcxx-pc", + # ...speed up build by stop building libstdc++-v3 + "--disable-libstdcxx", + "--enable-lto", # ...disable translations avoid conflict with brew install gcc --enable-nls '--disable-nls' ]