From 2558e8061786a797ef3f3be2f91617c27f4e18ba Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 2 Jun 2013 11:52:43 -0700 Subject: botan: simplify * don't need to_s on ENV.compiler * soname inreplace no longer needed --- Library/Formula/botan.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/botan.rb b/Library/Formula/botan.rb index 178a52ab3..2233d6855 100644 --- a/Library/Formula/botan.rb +++ b/Library/Formula/botan.rb @@ -11,12 +11,9 @@ class Botan < Formula args = ["--prefix=#{prefix}"] args << "--cpu=x86_64" if MacOS.prefer_64_bit? args << "--enable-debug" if build.include? "enable-debug" - # The --cc option needs "clang" or "gcc" and not the full path. - args << "--cc=#{ENV.compiler.to_s}" + args << "--cc=#{ENV.compiler}" system "./configure.py", *args - # "-soname" can lead to issues like https://github.com/mxcl/homebrew/issues/11972 - inreplace "Makefile", "-Wl,-soname", "-dynamiclib -install_name " # A hack to force them use our CFLAGS. MACH_OPT is empty in the Makefile # but used for each call to cc/ld. system "make", "install", "MACH_OPT=#{ENV.cflags}" -- cgit v1.2.3