From 4fa9600c11148e3497d47ec75c6d804fa816b53f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 21 May 2014 20:42:02 -0500 Subject: nload: fix build with clang --- Library/Formula/nload.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/nload.rb b/Library/Formula/nload.rb index 0147e4409..8d41434bc 100644 --- a/Library/Formula/nload.rb +++ b/Library/Formula/nload.rb @@ -9,12 +9,8 @@ class Nload < Formula build 2334 end - fails_with :clang do - cause "ld: internal error: atom not found in symbolIndex(__Z10fromStringIyET_RKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE) for architecture x86_64" - end - - depends_on :autoconf - depends_on :automake + depends_on "autoconf" => :build + depends_on "automake" => :build # Patching configure.in file to make configure compile on Mac OS. # Patch taken from MacPorts. @@ -22,9 +18,11 @@ class Nload < Formula def install system "./run_autotools" - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + # Unset LDFLAGS, "-s" causes the linker to crash + system "make", "install", "LDFLAGS=" end end -- cgit v1.2.3