diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jpeg-turbo.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/jpeg-turbo.rb b/Library/Formula/jpeg-turbo.rb index 4c0e32031..44c0cb1d6 100644 --- a/Library/Formula/jpeg-turbo.rb +++ b/Library/Formula/jpeg-turbo.rb @@ -11,7 +11,12 @@ class JpegTurbo < Formula def install args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] - args << "--host=x86_64-apple-darwin" if MacOS.prefer_64_bit? + if MacOS.prefer_64_bit? + args << "--host=x86_64-apple-darwin" + # Auto-detect our 64-bit nasm + args << "NASM=#{Formula.factory('nasm').bin}/nasm" + end + system "./configure", *args system 'make' ENV.j1 # Stops a race condition error: file exists |
