summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Booker <gbooker@tamu.edu>2006-07-27 22:10:11 +0000
committerDiego Biurrun <diego@biurrun.de>2006-07-27 22:10:11 +0000
commitabafc9c3f6be0c72808e25500fcbc4a26ca25c99 (patch)
treee14712709998d2f253808a0e9214cdc2996b2ba3
parentae08a5631e430b59f806c15bbcc80996a6fa7a49 (diff)
Do not add -fomit-frame-pointer to CFLAGS when optimizations are disabled.
patch by Graham Booker, ffmpeglist atat cod3r dotdot com Originally committed as revision 5832 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 405cd4f76e..a3613b34c2 100755
--- a/configure
+++ b/configure
@@ -1016,22 +1016,25 @@ if test $targetos = Darwin; then
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
case "$gcc_version" in
*2.95*)
- CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
+ CFLAGS="$CFLAGS -no-cpp-precomp -pipe"
;;
*[34].*)
- CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare"
+ CFLAGS="$CFLAGS -no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare"
if test "$lshared" = no; then
needmdynamicnopic="yes"
fi
;;
*)
- CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
+ CFLAGS="$CFLAGS -no-cpp-precomp -pipe"
if test "$lshared" = no; then
needmdynamicnopic="yes"
fi
;;
esac
fi
+ if test $optimize != "no"; then
+ CFLAGS="$CFLAGS -fomit-frame-pointer"
+ fi
fi
# Can only do AltiVec on PowerPC