homebrew-core/Formula/bdw-gc.rb
Adam Vandenberg e1bb919734 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00

20 lines
616 B
Ruby

require 'formula'
class BdwGc <Formula
url 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz'
homepage 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/'
md5 '2ff9924c7249ef7f736ecfe6f08f3f9b'
def install
fails_with_llvm "LLVM gives an unsupported inline asm error"
if MACOS_VERSION == 10.6
# ucontext has been deprecated in 10.6
# use this flag to force the header to compile
ENV.append 'CPPFLAGS', "-D_XOPEN_SOURCE"
end
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end