Building with optimisation results in a make utiliy which fails with
malloc errors when building Git.
It works if no_optimization is used but the problem is specific to
apple-gcc42 build 5553, so I opted to block it off.
Current bottles were built with GCC 4.0.1 on tiger, so leaving them
in place.
Fixes#1513
ENV.no_optimization has handled things in the stdenv where setting the
default optimisation flags are skipped in C/CXXFLAGS. However,
indirectly in the background, the cc wrapper script still sets -Os
via the $HOMEBREW_OPTIMIZATION_LEVEL in the super env.
This causes issues on GCC builds from version 7 onwards where g++ is always
being invoked with -Os via superenv which generates a different compiler from
the one which the build process does (xgcc) and when it comes to do the stage
comparison, things fail.
With this change if ENV.no_optimization is set, $HOMEBREW_OPTIMIZATION_LEVEL is
deleted from the build env, and the cc wrapper skips setting an optimisation
level.
Fixes issue #554
Any form of compiler optimisation trips up GCC 4.2 whether it's Tigebrew's
default -Os, or libarchive's default of -O2.
Turning off optimisation allows the build to succeed.
Issue observed on Leopard & Snow Leopard. apple-gcc42 on Tiger untested.
Rather than a specific hostname in a subdomain.
This allows the archive.org infra to redirect requests to the active
host at the time the request is made and it save us from having to
update this setting when previously specified hosts stop responding
as discovered by @dotsam.
Resolves issue #1530
On 10.7 & 10.8 it unravels in one of two ways, either libgit.a complaining
about not resolving symbols from OpenSSL, or libicov + some more. I think
the change to build infra that landed in this release is a little premature
and assumes you're not setting LDFLAGS/CFLAGS, and it depends on things
which are set earlier in its build.
Fixes issue #1516
pragma GCC diagnostic not allowed inside functions prior to GCC 4.6.
Patch taken from upstream without changes to tests/ as they're not
built/run here, and m4/curl-compiler.m4 to avoid reconfiguring build
infra.
Fixes issue #1514