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 8087d53b5c95372b0d4a6461714352ff20e2206a..4f92b8a8f8e59326aa3a5fe7d3651bb9081f0c1b 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