aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-09-21 19:48:39 -0500
committerJack Nagel2014-09-21 19:48:39 -0500
commitfdfe507a626f45e467957eb77972db485c877e98 (patch)
treedc44456c19252d69b0e727bc3834437b84f3abe8 /Library/Formula
parent104cb6c78027615e5017c20f8ac499e9eabba6a8 (diff)
downloadhomebrew-fdfe507a626f45e467957eb77972db485c877e98.tar.bz2
chicken: allow bottles built on Xcode systems to work on CLT systems
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chicken.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/chicken.rb b/Library/Formula/chicken.rb
index 66361eb1f..b05d5fc8e 100644
--- a/Library/Formula/chicken.rb
+++ b/Library/Formula/chicken.rb
@@ -15,13 +15,15 @@ class Chicken < Formula
def install
ENV.deparallelize
- # Chicken uses a non-standard var. for this
- args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"]
- args << "ARCH=x86-64" if MacOS.prefer_64_bit?
- # necessary to fix build on older Xcodes due to different path,
- # and to fix the build on CLT-only systems
- args << "XCODE_DEVELOPER=#{MacOS::Xcode.prefix}"
- args << "XCODE_TOOL_PATH=#{MacOS::Xcode.toolchain_path}/usr/bin"
+
+ args = %W[
+ PLATFORM=macosx
+ PREFIX=#{prefix}
+ C_COMPILER=#{ENV.cc}
+ LIBRARIAN=ar
+ POSTINSTALL_PROGRAM=install_name_tool
+ ]
+
system "make", *args
system "make", "install", *args
end