ffmpeg: Xcode-only install needs additional flags
Two flags are necessary for Xcode-only systems: `--host-cflags` and `--host-ldflags` are set to `ENV.cflags` and `ENV.ldflags`, respectively. Closes Homebrew/homebrew#13344. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d55eb02400
commit
6ee1d5042b
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ class Ffmpeg < Formula
|
|||
"--enable-nonfree",
|
||||
"--enable-hardcoded-tables",
|
||||
"--enable-libfreetype",
|
||||
"--cc=#{ENV.cc}"]
|
||||
"--cc=#{ENV.cc}",
|
||||
"--host-cflags=#{ENV.cflags}",
|
||||
"--host-ldflags=#{ENV.ldflags}"
|
||||
]
|
||||
|
||||
args << "--enable-libx264" if Formula.factory('x264').linked_keg.exist?
|
||||
args << "--enable-libfaac" if Formula.factory('faac').linked_keg.exist?
|
||||
|
|
Loading…
Reference in a new issue