Check for support of -fomit-frame-pointer before adding it to CFLAGS.
authorBen Taylor <bentaylor.solx86@gmail.com>
Wed, 25 Jun 2008 15:41:36 +0000 (15:41 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 25 Jun 2008 15:41:36 +0000 (15:41 +0000)
patch by Ben Taylor, bentaylor.solx86 gmail com

Originally committed as revision 13966 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 8087d53..4f92b8a 100755 (executable)
--- 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