From 40617a6d05f9eb1de9c6745509e3735d76c446f3 Mon Sep 17 00:00:00 2001
From: Ben Taylor <bentaylor.solx86@gmail.com>
Date: Wed, 25 Jun 2008 15:41:36 +0000
Subject: [PATCH] Check for support of -fomit-frame-pointer before adding it to
 CFLAGS. patch by Ben Taylor, bentaylor.solx86 gmail com

Originally committed as revision 13966 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 8087d53b5c9..4f92b8a8f8e 100755
--- a/configure
+++ b/configure
@@ -1399,7 +1399,7 @@ if test $target_os = darwin; then
     fi
 fi
 
-disabled optimizations || add_cflags -fomit-frame-pointer
+disabled optimizations || check_cflags -fomit-frame-pointer
 
 # Add processor-specific flags
 if test $cpu != "generic"; then
-- 
GitLab