fio: fix "error: Define GOLDEN_RATIO_PRIME"

Let fio's own CFLAGS settings stand instead of clearing them in the formula.

The new 2.0.15 fio build was breaking because the Makefile changed around since
2.0.7, and is now using CFLAGS to pass necessary macros and "-include" options
to the build. The formula was crushing it with "CFLAGS=", which broke the build.

Also turn on "V=1" to get normal full output from make, showing cc command lines,
instead of the terse "CC foo.o" output, which makes it harder to diagnose.

Fixes Homebrew/homebrew#19380.
Closes Homebrew/homebrew#19423.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Andrew Janke 2013-04-24 03:41:24 -04:00 committed by Adam Vandenberg
parent d7f88d9e80
commit 133945cd4b

View file

@ -6,10 +6,12 @@ class Fio < Formula
sha1 '3b672f19ef37d0f4d733dc78820a5e4a735b9a7f'
def install
system "./configure"
# fio's CFLAGS passes vital stuff around, and crushing it will break the build
system "make", "prefix=#{prefix}",
"mandir=#{man}",
"CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"V=true", # get normal verbose output from fio's makefile
"install"
end
end