jack: fix build on 10.12 (#29065)
use CLT when it's installed instead of mixing Xcode and CLT headers
This commit is contained in:
parent
6b803b3d88
commit
4ccaa05bc6
1 changed files with 3 additions and 1 deletions
|
@ -24,10 +24,12 @@ class Jack < Formula
|
|||
depends_on "libsamplerate"
|
||||
|
||||
def install
|
||||
sdk = MacOS::CLT.installed? ? "" : MacOS.sdk_path
|
||||
|
||||
# Makefile hardcodes Carbon header location
|
||||
inreplace Dir["drivers/coreaudio/Makefile.{am,in}"],
|
||||
"/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h",
|
||||
"#{MacOS.sdk_path}/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h"
|
||||
"#{sdk}/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h"
|
||||
|
||||
ENV["LINKFLAGS"] = ENV.ldflags
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
|
|
Loading…
Reference in a new issue