aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-05-03 15:14:55 +0000
committerMåns Rullgård <mans@mansr.com>2010-05-03 15:14:55 +0000
commitb05394a08149c7d32a0b13c4d46e6a9d4082a786 (patch)
treef2dfeae23da4820e95ba446049528b287ec892fb
parentfa36165adf698fe66e3f46c35b8fd79be0fcf66f (diff)
downloadffmpeg-b05394a08149c7d32a0b13c4d46e6a9d4082a786.tar.gz
configure: allow compiler-specific flags for --disable-optimizations
ICC needs at least -O1 to link so add this when optimisations are otherwise disabled. Originally committed as revision 23013 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 6a8d0ec6ef..5d1ba2b006 100755
--- a/configure
+++ b/configure
@@ -1731,6 +1731,7 @@ elif $cc --version 2>/dev/null | grep -q Intel; then
AS_DEPFLAGS='-MMD'
speed_cflags='-O3'
size_cflags='-Os'
+ noopt_cflags='-O1'
elif $cc -v 2>&1 | grep -q xlc; then
cc_type=xlc
cc_version="AV_STRINGIFY(__IBMC__)"
@@ -2738,6 +2739,8 @@ if enabled small; then
optimizations="small"
elif enabled optimizations; then
add_cflags $speed_cflags
+else
+ add_cflags $noopt_cflags
fi
check_cflags -fno-math-errno
check_cflags -fno-signed-zeros