aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-05-23 10:14:06 -0700
committerJack Nagel2012-05-24 20:00:01 -0500
commit51f85ee8100d9d65200138e91abfe8de89987198 (patch)
treec160a7f888358b89595a315d39d5cd01fd270199 /Library
parent7022b7550c9311db86798f357569ae9e15fb70b0 (diff)
downloadhomebrew-51f85ee8100d9d65200138e91abfe8de89987198.tar.bz2
gst-ffmpeg: fix clang compile error
GST-ffmpeg comes bundled with an internal ffmpeg that suffers from the known issue of a hardcoded gcc unless the right configure arg is thrown. When building with clang, the hardcoded gcc in the libav subdirectory causes an error where gcc doesn't recognize `-march=native`. GST-ffmpeg offers a configure flag to fix that. Add a flag to use our ENV.cc. Fixes #12312 Closes #12390. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gst-ffmpeg.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/gst-ffmpeg.rb b/Library/Formula/gst-ffmpeg.rb
index ad4b4d278..4eccb2078 100644
--- a/Library/Formula/gst-ffmpeg.rb
+++ b/Library/Formula/gst-ffmpeg.rb
@@ -9,7 +9,9 @@ class GstFfmpeg < Formula
# ffmpeg is bundled with gst-ffmpeg
def install
- system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
+ system './configure', "--prefix=#{prefix}",
+ "--with-ffmpeg-extra-configure=--cc=#{ENV.cc}",
+ '--disable-dependency-tracking'
system "make install"
end
end