diff options
| author | Adam Vandenberg | 2013-06-02 11:52:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-02 11:52:43 -0700 |
| commit | 2558e8061786a797ef3f3be2f91617c27f4e18ba (patch) | |
| tree | 4d328ca323f9b1bf9d95ffb85cba93fa7e545e3d /Library/Formula | |
| parent | 695c785d7456d651c0c71717aa054e431b02c4b5 (diff) | |
| download | homebrew-2558e8061786a797ef3f3be2f91617c27f4e18ba.tar.bz2 | |
botan: simplify
* don't need to_s on ENV.compiler
* soname inreplace no longer needed
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/botan.rb | 5 |
1 files changed, 1 insertions, 4 deletions
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}" |
