133945cd4b
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>
17 lines
540 B
Ruby
17 lines
540 B
Ruby
require 'formula'
|
|
|
|
class Fio < Formula
|
|
homepage 'http://freecode.com/projects/fio'
|
|
url 'http://brick.kernel.dk/snaps/fio-2.0.15.tar.bz2'
|
|
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}",
|
|
"V=true", # get normal verbose output from fio's makefile
|
|
"install"
|
|
end
|
|
end
|