From fdfe507a626f45e467957eb77972db485c877e98 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 21 Sep 2014 19:48:39 -0500 Subject: chicken: allow bottles built on Xcode systems to work on CLT systems --- Library/Formula/chicken.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3