From 51f85ee8100d9d65200138e91abfe8de89987198 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Wed, 23 May 2012 10:14:06 -0700 Subject: 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 --- Library/Formula/gst-ffmpeg.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3