html-xml-utils: fix build with clang

This commit is contained in:
Jack Nagel 2013-11-07 13:05:23 -06:00
parent 7f9d4859bb
commit 11f0551fe8

View file

@ -5,18 +5,9 @@ class HtmlXmlUtils < Formula
url 'http://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-6.4.tar.gz'
sha1 '6dc6ace41a4c3f692f79b16107d50d0e80d0ee40'
fails_with :clang do
build 425
cause <<-EOS.undent
Undefined symbols for architecture x86_64:
"_min", referenced from:
_write_index_item in hxindex.o
EOS
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
ENV.append 'CFLAGS', '-std=gnu89'
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
ENV.j1 # install is not thread-safe
system "make install"