This started happening because I undefined CC. Now a lot of tools pick gcc. The problem here is that we add to cflags before configure, and during configure we are 'servile' so when configure uses gcc it *is* llvm-gcc and not clang, which we will be during make because then we are *not* servile.
So we have to assign these cflags during make only, which is easy enough. Code is neater now too.
I am now working on superenv so that it can determine if a tool cannot use certain flags and then pick another. The last stage of always-just-works.
This is kind of hackish, but we can clean it up when we get the compiler
selection code up to snuff again.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Rationale: It's a crypto library so we should make sure it works. It
doesn't take _that_ long even on my old, slow MBP.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Add configure path to libgpgerror in case homebrew is installed in
a non-standard location where gpg error libraries and includes are
not automagically found.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.