gcc: reduce bottle deviations.

This commit is contained in:
Mike McQuaid 2019-01-24 13:57:00 +00:00
parent b96210f2bd
commit 9c6d5a061e

View file

@ -93,15 +93,10 @@ class Gcc < Formula
system "../configure", *args
make_args = []
# Use -headerpad_max_install_names in the build,
# otherwise updated load commands won't fit in the Mach-O header.
# This is needed because `gcc` avoids the superenv shim.
if build.bottle?
make_args << "BOOT_LDFLAGS=-Wl,-headerpad_max_install_names"
end
system "make", *make_args
system "make", "BOOT_LDFLAGS=-Wl,-headerpad_max_install_names"
system "make", "install"
bin.install_symlink bin/"gfortran-#{version_suffix}" => "gfortran"